Vulnerabilities in pkg:pypi/memtomem-stm
PACKAGECVE-2026-77331 is a LOW concurrent ltm recovery can duplicate vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting memtomem-stm libraries in the PyPI ecosystem. The issue involves concurrent ltm recovery can duplicate reconnects or reuse a cancelled transport session. Remediation is available by upgrading affected packages to version 0.1.34.
pkg:pypi/memtomem-stm
Vulnerability advisories affecting package pkg:pypi/memtomem-stm. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-72jh-722p-rqr3 | CVE-2026-77331 | LOW | memtomem-stm: Concurrent LTM recovery can duplicate reconnects or reuse a cancelled transport session |
| GHSA-43hx-xm7w-3mhj | CVE-2026-77332 | LOW | memtomem-stm: Surfaced memory data can escape the Markdown compatibility boundary |
CVE-2026-77331 at a Glance
How to Fix CVE-2026-77331
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-77331, 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-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. 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-77331 Affected memtomem-stm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
memtomem-stm
|
PyPI |
≥ 0.1.2
< 0.1.34
|
0.1.34
|
References
Frequently Asked Questions
What is CVE-2026-77331?
Which memtomem-stm versions are affected?
What version fixes CVE-2026-77331?
Is memtomem-stm affected?
What CWE is associated with CVE-2026-77331?
How can I check PyPI dependencies for CVE-2026-77331?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-72jh-722p-rqr3",
"modified" : "2026-11-20T23:38:15Z",
"published" : "2026-11-20T23:38:15Z",
"aliases" : [ "CVE-2026-77331" ],
"summary" : "memtomem-stm: Concurrent LTM recovery can duplicate reconnects or reuse a cancelled transport session",
"details" : "Concurrent surfacing RPC failures can trigger more than one reconnect for the same dirty session, and cancellation during a post-reconnect retry can leave the replacement session reusable despite an interrupted protocol exchange. The private fix introduces monotonic session generations, one shielded shared reconnect flight per dirty generation, and generation-aware cancellation handling across search, access-count, and scratch RPCs. The duplicate-reconnect subcase was introduced in 0.1.24; cancellation recovery affects the broader listed range.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "memtomem-stm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.1.2"
}, {
"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-72jh-722p-rqr3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-77331"
}, {
"type" : "WEB",
"url" : "https://github.com/memtomem/memtomem-stm/commit/761db1802df7ce4881ff4c3acee6d674925da498"
}, {
"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-362" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-20T23:38:15Z",
"nvd_published_at" : "2026-11-20T17:18:27Z"
}
}