{"id":"CVE-2026-76240","aliases":["CVE-2026-76240","GHSA-9pc9-4crj-mhpj"],"related":[],"kind":"vulnerability","state":"published","title":"stigmem Postgres SQL Injection via Schema Identifier","summary":"stigmem-node 0.9.0a1 interpolates Postgres backend schema identifiers into SQL strings without defensive quoting. In the affected code path the schema value is operator-controlled, but the unsafe pattern could allow SQL injection if a schema name were derived from tenant, request, or user input. Fixed in 0.9.0a2, which adds identifier quoting and validation. As a workaround, only configure schema names from trusted deployment configuration.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"stigmem-node 0.9.0a1 interpolates Postgres backend schema identifiers into SQL strings without defensive quoting. In the affected code path the schema value is operator-controlled, but the unsafe pattern could allow SQL injection if a schema name were derived from tenant, request, or user input. Fixed in 0.9.0a2, which adds identifier quoting and validation. As a workaround, only configure schema names from trusted deployment configuration.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"}],"published":"2026-05-29T22:15:40.000Z","modified":"2026-09-11T18:28:15.520Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"0.9.0a2","status":"affected"},{"type":"custom","version":"0.9.0a2","status":"unaffected"}],"vendor":"eidetic-labs","product":"stigmem","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.9.0a2"}],"ecosystem":"PyPI","package":"stigmem-node","purl":"pkg:pypi/stigmem-node","source":"ghsa"}],"references":[{"url":"https://github.com/eidetic-labs/stigmem/security/advisories/GHSA-9pc9-4crj-mhpj","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/stigmem-postgres-sql-injection-via-schema-identifier","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/eidetic-labs/stigmem","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/eidetic-labs/stigmem/blob/v0.9.0a2/CHANGELOG.md#L14-L35","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/eidetic-labs/stigmem/blob/v0.9.0a2/SECURITY.md","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/eidetic-labs/stigmem/releases/tag/v0.9.0a2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-20T13:47:22.730Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-76240","url":"https://www.cve.org/CVERecord?id=CVE-2026-76240","licence":"CVE Terms of Use","modified":"2026-08-20T15:22:44.363Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9pc9-4crj-mhpj","url":"https://github.com/advisories/GHSA-9pc9-4crj-mhpj","licence":"CC-BY-4.0","modified":"2026-08-20T04:04:12.485Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-76240","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76240","licence":"Public domain","modified":"2026-09-11T18:28:15.520Z"}],"updatedAt":"2026-11-25T22:59:33.945Z","epss":{"score":0.00279,"percentile":0.21855,"date":"2026-12-01T12:00:22.000Z"}}