HIGH · CVSS 3.1 8.2 EPSS 0.2% · 9th percentile CWE-295CWE-347

CVE-2026-64855: soapbar: verify_envelope_bsp accepts an unauthenticated embedded certificate (signature forgery / authentication bypass)

Published 2026-11-24 · Updated 2026-11-24 · Also known as GHSA-859w-52fx-hcm6

Summary

The soapbar library's verify_envelope_bsp function improperly trusts embedded X.509 certificates from incoming messages without validation against a trusted anchor. Engineering teams using soapbar versions prior to 0.13.0 must upgrade immediately to prevent authentication bypass and signature forgery.

Who is affected

Deployments using soapbar < 0.13.0 that rely on verify_envelope_bsp() for message authentication are vulnerable to impersonation attacks. An attacker can mint their own certificate, sign a forged envelope, and embed that certificate into the message to successfully pass verification. This occurs because the function failed to perform CA-chain validation, allowlisting, or pinning, allowing any caller-untrusted certificate to serve as its own trust anchor.

Exploitability

The vulnerability is remotely exploitable over the network without requiring privileges or user interaction, resulting in high integrity impact and low confidentiality impact as indicated by a CVSS 3.1 base score of 8.2. The EPSS score is very low at 0.002, and the vulnerability is not currently tracked in CISA's Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI soapbar >= 0, < 0.13.0 0.13.0 python -m pip install 'soapbar>=0.13.0'

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityLow
IntegrityHigh
AvailabilityNone

FAQ

Are all verification functions in soapbar affected?

No. The vulnerability is specific to verify_envelope_bsp(); the verify_envelope function, which pins a caller-supplied x509_cert, is not affected.

What happens if neither trusted_certs nor ca_certs are supplied in version 0.13.0?

Verification raises an error instead of trusting the message's own certificate, as the function now fails closed.

Is there a workaround if upgrading is not immediately possible?

Do not treat a successful verify_envelope_bsp() call as authentication, prefer verify_envelope with a pinned certificate, or manually validate the embedded certificate against your own trust store.

Original advisory description
### Impact `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. ### Affected versions soapbar `< 0.13.0` (all published versions exposing `verify_envelope_bsp`). ### Patches Fixed in **0.13.0**. `verify_envelope_bsp` now fails closed unless the caller anchors trust: - `trusted_certs=[...]` - pin the expected signer certificate(s); the embedded certificate must equal one of them. - `ca_certs=[...]` - accept certificates directly issued by trusted CA(s). With neither supplied, verification raises instead of trusting the message's own certificate. The trust anchor is checked before the signature is relied upon. `verify_cert_trust=False` restores the old (insecure) behaviour explicitly. ### Workarounds Before upgrading: - Do not treat a successful `verify_envelope_bsp()` as authentication. - Prefer `verify_envelope(..., x509_cert=<pinned cert>)`, which pins the expected certificate. - If BSP is required, validate the embedded certificate against your own trust store before acting on the verification result.

References

Source records: GHSA-859w-52fx-hcm6 (OSV.dev) · EPSS by FIRST, 2026-11-24.