CVE-2026-77332: memtomem-stm Surfaced Memory Data Can Escape Vulnerability
LOWCVE-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
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.
pip install memtomem-stm>=0.1.34
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
CVE-2026-77332 Affected memtomem-stm Versions
1 component(s)| 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?
Which memtomem-stm versions are affected?
What version fixes CVE-2026-77332?
Is memtomem-stm affected?
What CWE is associated with CVE-2026-77332?
How can I check PyPI dependencies for CVE-2026-77332?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}