{"id":"CVE-2026-75522","summary":"OpenID4VP: X.509 chain validation accepts a forged certificate that reuses a trusted anchor's Subject DN without verifying its signature","details":"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.","aliases":["GHSA-4c2f-96cf-f5fc"],"modified":"2026-11-18T22:00:16.747978503Z","published":"2026-11-18T20:50:38.763Z","database_specific":{"cwe_ids":["CWE-295","CWE-347"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75522.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75522.json"},{"type":"FIX","url":"https://github.com/openeudi/openid4vp/commit/a3ffd435aadd61aff1f75ec4b2e1a0f44ffabf16"},{"type":"FIX","url":"https://github.com/openeudi/openid4vp/pull/25"},{"type":"WEB","url":"https://github.com/openeudi/openid4vp/releases/tag/v0.8.1"},{"type":"ADVISORY","url":"https://github.com/openeudi/openid4vp/security/advisories/GHSA-4c2f-96cf-f5fc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-75522"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openeudi/openid4vp","events":[{"introduced":"0"},{"fixed":"edfbe7db4953688d2a21938ac9513e1e0cfcaf67"},{"fixed":"a3ffd435aadd61aff1f75ec4b2e1a0f44ffabf16"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"0.8.1"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"a3ffd435aadd61aff1f75ec4b2e1a0f44ffabf16"}]},{"source":"REFERENCES_TAG","original_tag":"v0.8.1","range":[{"fixed":"edfbe7db4953688d2a21938ac9513e1e0cfcaf67"}]}]}}],"versions":["v0.8.0","v0.7.0","v0.6.0","v0.5.0","v0.4.0","v0.3.0","v0.2.1","v0.2.0","v0.1.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-75522.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}