{"id":"CVE-2026-75522","state":"PUBLISHED","title":"OpenID4VP: X.509 chain validation accepts a forged certificate that reuses a trusted anchor's Subject DN without verifying its signature","description":"OpenID4VP is an open-source credential parsing library for SD-JWT VC and mDOC/mDL formats. Prior to 0.8.1, src/trust/ChainBuilder.ts ChainBuilder.tryBuild() terminates chain construction when an attacker-controlled certificate Subject Distinguished Name equals a trusted anchor subject, without verifying cryptographic closure to the anchor public key. A remote unauthenticated attacker can supply a self-signed leaf or intermediate that reuses the trusted Subject Distinguished Name and have credentials signed by the attacker key accepted as issued by the trusted authority. The public src/trust/TrustEvaluator.ts TrustEvaluator.evaluate() path compounds the error by matching a terminus through serialNumber and falling back to anchors[0], which can attribute the forged chain to genuine trusted-authority metadata. This issue is fixed in version 0.8.1.","publishedAt":"2026-11-18T20:50:38.763Z","updatedAt":"2026-11-19T15:07:45.259Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["openeudi openid4vp"],"affected":[{"vendor":"openeudi","product":"openid4vp","versions":[{"version":"< 0.8.1","status":"affected"}]}],"references":["https://github.com/openeudi/openid4vp/security/advisories/GHSA-4c2f-96cf-f5fc","https://github.com/openeudi/openid4vp/pull/25","https://github.com/openeudi/openid4vp/commit/a3ffd435aadd61aff1f75ec4b2e1a0f44ffabf16","https://github.com/openeudi/openid4vp/releases/tag/v0.8.1"],"weaknesses":["CWE-295","CWE-347"],"ingestedAt":"2026-11-19T15:20:05.915Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/75xxx/CVE-2026-75522.json","commit":"d949b85c4c97ad6dc547b19a40a80e23ebe4944d","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-75522","state":"PUBLISHED","datePublished":"2026-11-18T20:50:38.763Z","dateUpdated":"2026-11-19T15:07:45.259Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-17T20:49:21.599Z"},"containers":{"cna":{"title":"OpenID4VP: X.509 chain validation accepts a forged certificate that reuses a trusted anchor's Subject DN without verifying its signature","descriptions":[{"lang":"en","value":"OpenID4VP is an open-source credential parsing library for SD-JWT VC and mDOC/mDL formats. Prior to 0.8.1, src/trust/ChainBuilder.ts ChainBuilder.tryBuild() terminates chain construction when an attacker-controlled certificate Subject Distinguished Name equals a trusted anchor subject, without verifying cryptographic closure to the anchor public key. A remote unauthenticated attacker can supply a self-signed leaf or intermediate that reuses the trusted Subject Distinguished Name and have credentials signed by the attacker key accepted as issued by the trusted authority. The public src/trust/TrustEvaluator.ts TrustEvaluator.evaluate() path compounds the error by matching a terminus through serialNumber and falling back to anchors[0], which can attribute the forged chain to genuine trusted-authority metadata. This issue is fixed in version 0.8.1."}],"affected":[{"vendor":"openeudi","product":"openid4vp","versions":[{"version":"< 0.8.1","status":"affected"}]}],"references":[{"url":"https://github.com/openeudi/openid4vp/security/advisories/GHSA-4c2f-96cf-f5fc","name":"https://github.com/openeudi/openid4vp/security/advisories/GHSA-4c2f-96cf-f5fc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/openeudi/openid4vp/pull/25","name":"https://github.com/openeudi/openid4vp/pull/25","tags":["x_refsource_MISC"]},{"url":"https://github.com/openeudi/openid4vp/commit/a3ffd435aadd61aff1f75ec4b2e1a0f44ffabf16","name":"https://github.com/openeudi/openid4vp/commit/a3ffd435aadd61aff1f75ec4b2e1a0f44ffabf16","tags":["x_refsource_MISC"]},{"url":"https://github.com/openeudi/openid4vp/releases/tag/v0.8.1","name":"https://github.com/openeudi/openid4vp/releases/tag/v0.8.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-295","lang":"en","description":"CWE-295: Improper Certificate Validation","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-347","lang":"en","description":"CWE-347: Improper Verification of Cryptographic Signature","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-18T20:50:38.763Z"},"source":{"advisory":"GHSA-4c2f-96cf-f5fc","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/openeudi/openid4vp/security/advisories/GHSA-4c2f-96cf-f5fc","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T15:07:40.823702Z","id":"CVE-2026-75522","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-19T15:07:45.259Z"}}]}}}