CVE-2026-64855: CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation
CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation Vulnerability ID: CVE-2026-64855 CVSS Score: 8.2 Published: 2026-11-24 CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryp
CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation
Vulnerability ID: CVE-2026-64855
CVSS Score: 8.2
Published: 2026-11-24
CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.
TL;DR
The verify_envelope_bsp() function in soapbar versions prior to 0.13.0 validates XML signatures against the untrusted X.509 certificate embedded within the incoming SOAP message without checking certificate pinning or CA issuance. Attackers can forge arbitrary authenticated SOAP requests by signing payloads with a self-signed certificate and embedding it in the wsse:BinarySecurityToken element. Remediation requires upgrading to soapbar 0.13.0 and configuring explicit trust anchors via the trusted_certs or ca_certs parameters.
β οΈ Exploit Status: POC
Technical Details
- CVE / Advisory ID: CVE-2026-64855 / GHSA-859w-52fx-hcm6
- Weakness Class: CWE-295 (Improper Certificate Validation) / CWE-347 (Improper Verification of Cryptographic Signature)
- CVSS v3.1 Score: 8.2 HIGH (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N)
- EPSS Score: 0.191% (8.59th Percentile)
- Affected Component: soapbar (< 0.13.0) β soapbar.core.wssecurity.verify_envelope_bsp()
- Security Impact: Unauthenticated XML Signature Forgery & Authentication Bypass
- Exploit & KEV Status: PoC Available (Regression Tests) / Not Listed in CISA KEV
Affected Systems
- soapbar (Python PyPI package)
-
soapbar: < 0.13.0 (0.5.0 through 0.12.1) (Fixed in:
0.13.0)
Code Analysis
Commit: 8daaf22
fix(security): require a trust anchor in verify_envelope_bsp (GHSA-859w-52fx-hcm6) (#71)
@@ -1096,6 +1096,57 @@ def extract_certificate_from_security(security_element: _Element) -> Any:
return cert
+def _load_x509(cert: Any) -> Any:
+ """Normalize a certificate given as a ``cryptography`` X.509 object or as
+ PEM/DER bytes into an X.509 object."""
+ if isinstance(cert, (bytes, bytearray)):
+ from cryptography import x509
+ data = bytes(cert)
+ try:
+ return x509.load_pem_x509_certificate(data)
+ except ValueError:
+ return x509.load_der_x509_certificate(data)
+ return cert
+
+
+def _validate_bsp_cert_trust(
+ cert: Any, trusted_certs: Any, ca_certs: Any
+) -> None:
+ from cryptography.hazmat.primitives.serialization import Encoding
+
+ if trusted_certs is None and ca_certs is None:
+ raise XmlSecurityError(
+ "verify_envelope_bsp: no trust anchor configured. The certificate "
+ "carried in the message cannot be trusted on its own. Pass "
+ "trusted_certs=[...] to pin the expected signer certificate(s), "
+ "ca_certs=[...] to accept certificates issued by trusted CA(s), or "
+ "verify_cert_trust=False to explicitly accept the embedded "
+ "certificate (INSECURE)."
+ )
+ cert_der = cert.public_bytes(Encoding.DER)
+ for tc in trusted_certs or ():
+ if _load_x509(tc).public_bytes(Encoding.DER) == cert_der:
+ return
+ for ca in ca_certs or ():
+ try:
+ cert.verify_directly_issued_by(_load_x509(ca))
+ return
+ except Exception:
+ continue
+ raise XmlSecurityError(
+ "BinarySecurityToken certificate is not trusted: it matches no pinned "
+ "certificate and is issued by no configured CA."
+ )
Exploit Details
- GitHub: Official regression tests in tests/test_soapbar.py (TestBspTrustAnchor) demonstrating signature forgery using an attacker-minted self-signed certificate.
Mitigation Strategies
- Enforce explicit trust anchor validation on all incoming WS-Security BinarySecurityToken certificates via certificate pinning or CA issuance checks.
- Ensure verify_envelope_bsp() fails closed by never passing verify_cert_trust=False in production environments.
- Combine trust anchor configuration with expected_references and require_signed_body=True to prevent signature wrapping and reference stripping attacks.
Remediation Steps:
- Upgrade soapbar to version 0.13.0 or later via pip: pip install --upgrade 'soapbar>=0.13.0'.
- Audit the codebase for all calls to verify_envelope_bsp().
- Update every verify_envelope_bsp() call to pass either trusted_certs=[...] containing pinned signer certificates or ca_certs=[...] containing trusted issuing CA certificates.
- Verify that unit and integration test suites pass without relying on verify_cert_trust=False in production code paths.
References
- GitHub Security Advisory GHSA-859w-52fx-hcm6
- GitHub Pull Request #71: require a trust anchor in verify_envelope_bsp
- Fix Commit 8daaf221c1a681e6656a580b01f89f155ad97200
- soapbar Release v0.13.0
- NVD Vulnerability Detail: CVE-2026-64855
- CVE.org Official Record: CVE-2026-64855
- CVEProject cvelistV5 Record: CVE-2026-64855
- soapbar GitHub Repository
Read the full report for CVE-2026-64855 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.