CVE-2026-77332: memtomem-stm Surfaced Memory Data Can Escape Vulnerability

LOW
Advisory Identifier: GHSA-43hx-xm7w-3mhj
CWE-116
Published
Advisory Summary

CVE-2026-77332 is a LOW surfaced memory data can escape vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting memtomem-stm libraries in the PyPI ecosystem. The issue involves surfaced memory data can escape the markdown compatibility boundary. Remediation is available by upgrading affected packages to version 0.1.34.

CVE-2026-77332 at a Glance

CVE Identifier CVE-2026-77332
GHSA Identifier GHSA-43hx-xm7w-3mhj
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product memtomem-stm
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-77332

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

memtomem-stm fixed: 0.1.34
pip install memtomem-stm>=0.1.34
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 memtomem-stm

How to Check if You Are Affected

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

pip show memtomem-stm

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In memtomem-stm, 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

Untrusted long-term and working-memory fields can introduce Markdown or HTML-compatible structure into the surfaced-memory envelope. A crafted memory may create misleading structural boundaries or visually conceal content. The private fix serializes every untrusted field as inert single-line data, validates copyable memory identifiers, and pins an explicit untrusted-data preamble. Ordinary natural-language persuasion remains a residual model-level risk.

CVE-2026-77332 Affected memtomem-stm Versions

1 component(s)
Fixed Versions:
0.1.34
Product / Package Ecosystem Affected Versions Fixed Version
memtomem-stm
PyPI
≥ 0.1.0
< 0.1.34
0.1.34

References

Frequently Asked Questions

What is CVE-2026-77332?
CVE-2026-77332 is a security vulnerability in memtomem-stm involving Surfaced memory data can escape the Markdown compatibility boundary under CWE-116: Improper Encoding or Escaping of Output.
Which memtomem-stm versions are affected?
Affected versions include releases prior to 0.1.34 across affected packages: memtomem-stm.
What version fixes CVE-2026-77332?
Upgrading to 0.1.34 (or the latest patched release for your respective branch) resolves the vulnerability.
Is memtomem-stm affected?
Yes, memtomem-stm is affected in releases prior to 0.1.34. Upgrade your dependency to 0.1.34 or later.
What CWE is associated with CVE-2026-77332?
CVE-2026-77332 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check PyPI dependencies for CVE-2026-77332?
Run the dependency tree command: 'pip show memtomem-stm'. 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-43hx-xm7w-3mhj",
  "modified" : "2026-11-20T23:37:39Z",
  "published" : "2026-11-20T23:37:39Z",
  "aliases" : [ "CVE-2026-77332" ],
  "summary" : "memtomem-stm: Surfaced memory data can escape the Markdown compatibility boundary",
  "details" : "Untrusted long-term and working-memory fields can introduce Markdown or HTML-compatible structure into the surfaced-memory envelope. A crafted memory may create misleading structural boundaries or visually conceal content. The private fix serializes every untrusted field as inert single-line data, validates copyable memory identifiers, and pins an explicit untrusted-data preamble. Ordinary natural-language persuasion remains a residual model-level risk.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "memtomem-stm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.1.0"
      }, {
        "fixed" : "0.1.34"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.1.33"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/memtomem/memtomem-stm/security/advisories/GHSA-43hx-xm7w-3mhj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-77332"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/memtomem/memtomem-stm/commit/3d50ba61cbfafba6db261e35c18eed0c3805b390"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/memtomem/memtomem-stm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/memtomem/memtomem-stm/releases/tag/v0.1.34"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-20T23:37:39Z",
    "nvd_published_at" : "2026-11-20T17:18:27Z"
  }
}