GHSA-9pc9-4crj-mhpj: Stigmem node Stigmem-node's Postgres Schema Identifier Handling Vulnerability
HIGHGHSA-9pc9-4crj-mhpj is a HIGH stigmem-node's postgres schema identifier handling vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Stigmem node libraries in the PyPI ecosystem. The issue involves stigmem-node's postgres schema identifier handling required defensive quoting. Remediation is available by upgrading affected packages to version 0.9.0a2.
GHSA-9pc9-4crj-mhpj at a Glance
How to Fix GHSA-9pc9-4crj-mhpj
To remediate this vulnerability, upgrade all affected Stigmem node 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 stigmem-node>=0.9.0a2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show stigmem-node
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-9pc9-4crj-mhpj, inspect your installed packages using pip:
pip show stigmem-node
Analyze the terminal output to locate any version of Stigmem node in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.0a2), your application is affected.
Note: The pip show stigmem-node command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Stigmem node, 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
GHSA-9pc9-4crj-mhpj Affected Stigmem node Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
stigmem-node
|
PyPI |
< 0.9.0a2
|
0.9.0a2
|
References
Frequently Asked Questions
What is GHSA-9pc9-4crj-mhpj?
Which Stigmem node versions are affected?
What version fixes GHSA-9pc9-4crj-mhpj?
Is stigmem-node affected?
What CWE is associated with GHSA-9pc9-4crj-mhpj?
How can I check PyPI dependencies for GHSA-9pc9-4crj-mhpj?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9pc9-4crj-mhpj",
"modified" : "2026-05-29T22:15:40Z",
"published" : "2026-05-29T22:15:40Z",
"aliases" : [ ],
"summary" : "stigmem-node's Postgres schema identifier handling required defensive quoting",
"details" : "### Impact\nPostgres backend schema identifiers were interpolated into SQL strings. In the reviewed code path the schema value is operator-controlled, but the pattern was unsafe if future call sites allowed tenant or request-controlled schema names. Impacted users are operators using the Postgres backend in affected versions.\n\n### Patches\nPatched in 0.9.0a2. Schema identifier handling now uses defensive identifier quoting and validation-oriented regression coverage.\n\n### Workarounds\nBefore upgrading, only configure Postgres schema names from trusted deployment configuration and do not derive schema names from request, tenant, header, or user input.\n\n### Upgrade\nUpgrade to the patched release:\n\n```bash\npip install --upgrade --pre stigmem-node\n```\n\nIf developers install through the Stigmem meta-package instead, they should use the matching extra for deployments, for example:\n\n```bash\npip install --upgrade --pre 'stigmem[node]'\n```\n\n### Resources\n- Release: https://github.com/eidetic-labs/stigmem/releases/tag/v0.9.0a2\n- Changelog: https://github.com/eidetic-labs/stigmem/blob/v0.9.0a2/CHANGELOG.md#L14-L35\n- Security policy and posture: https://github.com/eidetic-labs/stigmem/blob/v0.9.0a2/SECURITY.md",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "stigmem-node"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.0a2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/eidetic-labs/stigmem/security/advisories/GHSA-9pc9-4crj-mhpj"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/eidetic-labs/stigmem"
}, {
"type" : "WEB",
"url" : "https://github.com/eidetic-labs/stigmem/blob/v0.9.0a2/CHANGELOG.md#L14-L35"
}, {
"type" : "WEB",
"url" : "https://github.com/eidetic-labs/stigmem/blob/v0.9.0a2/SECURITY.md"
}, {
"type" : "WEB",
"url" : "https://github.com/eidetic-labs/stigmem/releases/tag/v0.9.0a2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-29T22:15:40Z",
"nvd_published_at" : null
}
}