CVE-2026-64855: soapbar Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-859w-52fx-hcm6
CVSS 8.2
CWE-295 CWE-347
Published
Advisory Summary

CVE-2026-64855 is a HIGH (CVSS 8.2) authentication bypass vulnerability (CWE-295: Improper Certificate Validation) affecting soapbar libraries in the PyPI ecosystem. The issue involves verify_envelope_bsp accepts an unauthenticated embedded certificate (signature forgery / authentication bypass). Remediation is available by upgrading affected packages to version 0.13.0.

CVE-2026-64855 at a Glance

CVE Identifier CVE-2026-64855
GHSA Identifier GHSA-859w-52fx-hcm6
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-295: Improper Certificate Validation
Affected Product soapbar
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-64855

To remediate this vulnerability, upgrade all affected soapbar dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

soapbar fixed: 0.13.0
pip install soapbar>=0.13.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show soapbar

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-64855, inspect your installed packages using pip:

pip show soapbar

Analyze the terminal output to locate any version of soapbar in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.13.0), your application is affected.

Note: The pip show soapbar command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In soapbar, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2026-64855 Affected soapbar Versions

1 component(s)
Fixed Versions:
0.13.0
Product / Package Ecosystem Affected Versions Fixed Version
soapbar
PyPI
< 0.13.0
0.13.0

References

Frequently Asked Questions

What is CVE-2026-64855?
CVE-2026-64855 is a security vulnerability in soapbar involving verify_envelope_bsp accepts an unauthenticated embedded certificate (signature forgery / authentication bypass) under CWE-295: Improper Certificate Validation.
Which soapbar versions are affected?
Affected versions include releases prior to 0.13.0 across affected packages: soapbar.
What version fixes CVE-2026-64855?
Upgrading to 0.13.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is soapbar affected?
Yes, soapbar is affected in releases prior to 0.13.0. Upgrade your dependency to 0.13.0 or later.
What is the CVSS score of CVE-2026-64855?
CVE-2026-64855 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N.
What CWE is associated with CVE-2026-64855?
CVE-2026-64855 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check PyPI dependencies for CVE-2026-64855?
Run the dependency tree command: 'pip show soapbar'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-859w-52fx-hcm6",
  "modified" : "2026-11-24T22:41:44Z",
  "published" : "2026-11-24T22:41:44Z",
  "aliases" : [ "CVE-2026-64855" ],
  "summary" : "soapbar: verify_envelope_bsp accepts an unauthenticated embedded certificate (signature forgery / authentication bypass)",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "soapbar"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.13.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/hitoshyamamoto/soapbar/security/advisories/GHSA-859w-52fx-hcm6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-64855"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hitoshyamamoto/soapbar/pull/71"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hitoshyamamoto/soapbar/commit/8daaf221c1a681e6656a580b01f89f155ad97200"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hitoshyamamoto/soapbar"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hitoshyamamoto/soapbar/releases/tag/v0.13.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295", "CWE-347" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-24T22:41:44Z",
    "nvd_published_at" : "2026-11-11T16:17:25Z"
  }
}