{
  "id": "CVE-2026-46421",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-46421",
  "published_at": "2026-07-15T18:52:09.971Z",
  "title": "Supply chain compromise via malicious package versions (@cap-js/sqlite,  @cap-js/postgres, @cap-js/db-service)",
  "vendor": "cap-js",
  "product": "@cap-js/sqlite",
  "cvss": {
    "score": 9.3,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "The SAP Cloud Application Programming Model is a tool for building enterprise-grade cloud applications, and cap-js/cds-dbs is the monorepo for SQL database services for that tool. On April 29, 2026, compromised versions of `@cap-js/sqlite@2.2.2`, `@cap-js/postgres@2.2.2`, and `@cap-js/db-service@2.10.1` were published. The malicious packages harvested credentials and attempted self-propagation. If a compromised version was installed, all credentials accessible on that machine (npm tokens, cloud provider credentials, SSH keys, GitHub PATs) should be considered compromised. User should upgrade to `@cap-js/sqlite` \u003e= 2.4.0, `@cap-js/postgres` \u003e= 2.3.0, `@cap-js/db-service` \u003e= 2.11.0. If a compromised version was ever installed, rotate all affected credentials. No known workarounds are available.",
  "cwe": "CWE-506",
  "cvss_by_source": {
    "cna": 9.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "cap-js",
        "product": "@cap-js/sqlite",
        "ranges": [
          "= 2.2.2"
        ],
        "fixed_in": null
      },
      {
        "vendor": "cap-js",
        "product": "@cap-js/postgres",
        "ranges": [
          "= 2.2.2"
        ],
        "fixed_in": null
      },
      {
        "vendor": "@cap-js/db-service",
        "product": "@cap-js/db-service",
        "ranges": [
          "= 2.10.1"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "@cap-js/sqlite",
        "ranges": [
          "\u003e= 2.2.2, \u003c 2.3.0"
        ],
        "fixed_in": [
          "2.3.0"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-pvw4-cvr4-97p8"
      },
      {
        "vendor": "",
        "product": "@cap-js/postgres",
        "ranges": [
          "\u003e= 2.2.2, \u003c 2.3.0"
        ],
        "fixed_in": [
          "2.3.0"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-pvw4-cvr4-97p8"
      },
      {
        "vendor": "",
        "product": "@cap-js/db-service",
        "ranges": [
          "\u003e= 2.10.1, \u003c 2.11.0"
        ],
        "fixed_in": [
          "2.11.0"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-pvw4-cvr4-97p8"
      }
    ],
    "upgrade": [
      "Upgrade @cap-js/sqlite to 2.3.0 or later.",
      "Upgrade @cap-js/postgres to 2.3.0 or later.",
      "Upgrade @cap-js/db-service to 2.11.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/cap-js/cds-dbs/security/advisories/GHSA-pvw4-cvr4-97p8"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
