{"id":"CVE-2026-76240","aliases":["GHSA-9pc9-4crj-mhpj"],"url":"https://o3.security/vulnerability/CVE-2026-76240","summary":"stigmem Postgres SQL Injection via Schema Identifier","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","published":"2026-08-19T14:02:18.061Z","modified":"2026-09-13T03:30:53.294527133Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"PyPI","name":"stigmem-node","fixedVersion":"0.9.0a2"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76240.json"},{"type":"ADVISORY","url":"https://github.com/eidetic-labs/stigmem/security/advisories/GHSA-9pc9-4crj-mhpj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76240"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/stigmem-postgres-sql-injection-via-schema-identifier"},{"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-13T03:30:53.294527133Z"}}