stigmem Postgres SQL Injection via Schema Identifier
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-76240
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 02:13 UTC · Revision 1
Source evidence
stigmem Postgres SQL Injection via Schema Identifier
core-osv · Original sourcePublished 19 Aug 2026, 14:02 UTC
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.
osv:CVE-2026-76240
Complete source record
{
"id": "1aa78ec25a270ede7d53568a5d94b759e44718fe41c1bdd8c6750f8c6f8d437b",
"url": "https://osv.dev/vulnerability/CVE-2026-76240",
"method": "structured",
"payload": {
"kind": "advisory",
"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.",
"evidence": "osv:CVE-2026-76240",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-76240",
"aliases": [
"CVE-2026-76240",
"GHSA-9pc9-4crj-mhpj"
],
"metrics": [
{
"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": [
{
"ranges": [
{
"repo": "https://github.com/eidetic-labs/stigmem",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "18ec5dbe3a3970d804f2013b4ae53dd2da8ed4ac"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.9.0a2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.9.0a2"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76240.json"
}
}
],
"modified": "2026-10-28T02:30:32.447369893Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76240.json",
"https://github.com/eidetic-labs/stigmem/security/advisories/GHSA-9pc9-4crj-mhpj",
"https://nvd.nist.gov/vuln/detail/CVE-2026-76240",
"https://www.vulncheck.com/advisories/stigmem-postgres-sql-injection-via-schema-identifier"
],
"provider_metadata": {
"cwe_ids": [
"CWE-89"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76240.json"
}
},
"related_cves": [
{
"value": "CVE-2026-76240",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499568,
"published_at": "2026-08-19T14:02:18.061+00:00"
}