GHSA-9pc9-4crj-mhpj

Suggest an improvement
Source
https://github.com/advisories/GHSA-9pc9-4crj-mhpj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-9pc9-4crj-mhpj/GHSA-9pc9-4crj-mhpj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9pc9-4crj-mhpj
Aliases
Published
2026-05-29T22:15:40Z
Modified
2026-08-20T04:04:12Z
Severity
  • 7.5 (High) CVSS_V4 - 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 CVSS Calculator
Summary
stigmem-node's Postgres schema identifier handling required defensive quoting
Details

Impact

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

Patches

Patched in 0.9.0a2. Schema identifier handling now uses defensive identifier quoting and validation-oriented regression coverage.

Workarounds

Before upgrading, only configure Postgres schema names from trusted deployment configuration and do not derive schema names from request, tenant, header, or user input.

Upgrade

Upgrade to the patched release:

pip install --upgrade --pre stigmem-node

If developers install through the Stigmem meta-package instead, they should use the matching extra for deployments, for example:

pip install --upgrade --pre 'stigmem[node]'

Resources

Database specific
{
    "cwe_ids": [
        "CWE-89"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-29T22:15:40Z",
    "nvd_published_at": null,
    "severity": "HIGH"
}
References

Affected packages

PyPI / stigmem-node

Package

Name
stigmem-node
View open source insights on deps.dev
Purl
pkg:pypi/stigmem-node

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.9.0a2

Affected versions

0.*
0.9.0a1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-9pc9-4crj-mhpj/GHSA-9pc9-4crj-mhpj.json"