{"id":"CVE-2026-64855","aliases":["CVE-2026-64855","GHSA-859w-52fx-hcm6"],"related":[],"kind":"vulnerability","state":"published","title":"soapbar: verify_envelope_bsp accepts an unauthenticated embedded certificate (signature forgery / authentication bypass)","summary":"soapbar is a SOAP library for Python — client, server, and WSDL handling. Prior to version 0.13.0, verify_envelope_bsp() derived its trust anchor from the message it was verifying. It read the X.509 certificate out of the caller-untrusted wsse:BinarySecurityToken, validated only that certificate's not-before / not-after dates, and then verified the signature against that same certificate. There was no CA-chain validation, no issuer/subject allowlist, and no pinning. A successful verify_envelope_bsp() therefore proved only that the envelope was signed by whoever supplied the embedded certificate — never that it was signed by a trusted party. An attacker who mints their own certificate, signs a forged envelope, and embeds that certificate in the token passes verification. Any consumer that treats a successful BSP verification as authentication can be impersonated (signature forgery / authentication bypass). verify_envelope() (which pins a caller-supplied x509_cert) was not affected — the flaw was specific to the BSP variant whose trust anchor came from the message. This issue has been patched in version 0.13.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"soapbar is a SOAP library for Python — client, server, and WSDL handling. Prior to version 0.13.0, verify_envelope_bsp() derived its trust anchor from the message it was verifying. It read the X.509 certificate out of the caller-untrusted wsse:BinarySecurityToken, validated only that certificate's not-before / not-after dates, and then verified the signature against that same certificate. There was no CA-chain validation, no issuer/subject allowlist, and no pinning. A successful verify_envelope_bsp() therefore proved only that the envelope was signed by whoever supplied the embedded certificate — never that it was signed by a trusted party. An attacker who mints their own certificate, signs a forged envelope, and embeds that certificate in the token passes verification. Any consumer that treats a successful BSP verification as authentication can be impersonated (signature forgery / authentication bypass). verify_envelope() (which pins a caller-supplied x509_cert) was not affected — the flaw was specific to the BSP variant whose trust anchor came from the message. This issue has been patched in version 0.13.0.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`verify_envelope_bsp()` derived its trust anchor from the message it was\nverifying. It read the X.509 certificate out of the caller-untrusted\n`wsse:BinarySecurityToken`, validated **only** that certificate's not-before /\nnot-after dates, and then verified the signature against that same certificate.\nThere was no CA-chain validation, no issuer/subject allowlist, and no pinning.\n\nA successful `verify_envelope_bsp()` therefore proved only that the envelope was\nsigned by *whoever supplied the embedded certificate* — never that it was signed\nby a *trusted* party. An attacker who mints their own certificate, signs a\nforged envelope, and embeds that certificate in the token passes verification.\nAny consumer that treats a successful BSP verification as authentication can be\nimpersonated (signature forgery / authentication bypass).\n\n`verify_envelope()` (which pins a caller-supplied `x509_cert`) was **not**\naffected — the flaw was specific to the BSP variant whose trust anchor came\nfrom the message.\n\n### Affected versions\n\nsoapbar `< 0.13.0` (all published versions exposing `verify_envelope_bsp`).\n\n### Patches\n\nFixed in **0.13.0**. `verify_envelope_bsp` now fails closed unless the caller\nanchors trust:\n\n- `trusted_certs=[...]` — pin the expected signer certificate(s); the embedded\n  certificate must equal one of them.\n- `ca_certs=[...]` — accept certificates directly issued by trusted CA(s).\n\nWith neither supplied, verification raises instead of trusting the message's own\ncertificate. The trust anchor is checked before the signature is relied upon.\n`verify_cert_trust=False` restores the old (insecure) behaviour explicitly.\n\n### Workarounds\n\nBefore upgrading:\n\n- Do not treat a successful `verify_envelope_bsp()` as authentication.\n- Prefer `verify_envelope(..., x509_cert=<pinned cert>)`, which pins the\n  expected certificate.\n- If BSP is required, validate the embedded certificate against your own trust\n  store before acting on the verification result.","format":"markdown","source":"ghsa"}],"published":"2026-11-11T15:48:16.347Z","modified":"2026-11-24T23:00:05.664Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","score":8.2,"rating":"HIGH"}],"cwes":["CWE-295","CWE-347"],"affected":[{"ranges":[{"version":"< 0.13.0","status":"affected"}],"vendor":"hitoshyamamoto","product":"soapbar","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.13.0"}],"ecosystem":"PyPI","package":"soapbar","purl":"pkg:pypi/soapbar","source":"ghsa"}],"references":[{"url":"https://github.com/hitoshyamamoto/soapbar/security/advisories/GHSA-859w-52fx-hcm6","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hitoshyamamoto/soapbar/pull/71","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hitoshyamamoto/soapbar/releases/tag/v0.13.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64855","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/hitoshyamamoto/soapbar/commit/8daaf221c1a681e6656a580b01f89f155ad97200","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/hitoshyamamoto/soapbar","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-12T19:35:40.490Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64855","url":"https://www.cve.org/CVERecord?id=CVE-2026-64855","licence":"CVE Terms of Use","modified":"2026-11-12T19:35:51.090Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-859w-52fx-hcm6","url":"https://github.com/advisories/GHSA-859w-52fx-hcm6","licence":"CC-BY-4.0","modified":"2026-11-24T23:00:05.664Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64855","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64855","licence":"Public domain","modified":"2026-11-12T22:18:51.470Z"}],"updatedAt":"2026-11-25T22:59:50.383Z","epss":{"score":0.00227,"percentile":0.14276,"date":"2026-12-01T12:00:22.000Z"}}