Summary
soapbar: verify_envelope_bsp accepts an unauthenticated embedded certificate (signature forgery / authentication bypass)
Advisory details
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
- https://github.com/advisories/GHSA-859w-52fx-hcm6
- https://github.com/hitoshyamamoto/soapbar/security/advisories/GHSA-859w-52fx-hcm6
- https://nvd.nist.gov/vuln/detail/CVE-2026-64855
- https://github.com/hitoshyamamoto/soapbar/pull/71
- https://github.com/hitoshyamamoto/soapbar/commit/8daaf221c1a681e6656a580b01f89f155ad97200
- https://github.com/hitoshyamamoto/soapbar/releases/tag/v0.13.0
Related vulnerabilities
All Supply chain →- HIGHCVE-2026-75522
OpenID4VP: X.509 chain validation accepts a forged certificate that reuses a trusted anchor's Subject DN without verifying its signature
- MEDIUMCVE-2026-59818
etcd: CRL enforcement bypass on gRPC listener when `--listen-client-http-urls` is configured
- HIGHCVE-2026-58262
Klever Go counts bitmap padding bits toward BLS quorum, allowing blocks with insufficient signatures
- HIGHCVE-2026-76101
keystore-go: Keystore integrity and password verification bypass via stripped trailing digest in Decode()
- HIGHCVE-2026-71535
Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path
- HIGHCVE-2026-71536
Mareforma: verify_bundle never checks a per-claim signature