{
  "id": "CVE-2026-40887",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40887",
  "published_at": "2026-04-21T19:24:59.525Z",
  "title": "@vendure/core has a SQL Injection vulnerability",
  "vendor": "vendurehq",
  "product": "vendure",
  "cvss": {
    "score": 9.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Vendure is an open-source headless commerce platform. Starting in version 1.7.4 and prior to versions 2.3.4, 3.5.7, and 3.6.2, an unauthenticated SQL injection vulnerability exists in the Vendure Shop API. A user-controlled query string parameter is interpolated directly into a raw SQL expression without parameterization or validation, allowing an attacker to execute arbitrary SQL against the database. This affects all supported database backends (PostgreSQL, MySQL/MariaDB, SQLite). The Admin API is also affected, though exploitation there requires authentication. Versions 2.3.4, 3.5.7, and 3.6.2 contain a patch. For those who are unable to upgrade immediately, Vendure has made a hotfix available that uses `RequestContextService.getLanguageCode` to validate the `languageCode` input at the boundary. This blocks injection payloads before they can reach any query. The hotfix replaces the existing `getLanguageCode` method in `packages/core/src/service/helpers/request-context/request-context.service.ts`. Invalid values are silently dropped and the channel's default language is used instead. The patched versions additionally convert the vulnerable SQL interpolation to a parameterized query as defense in depth.",
  "cwe": "CWE-89",
  "cvss_by_source": {
    "cna": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "vendurehq",
        "product": "vendure",
        "ranges": [
          "\u003e= 3.0.0, \u003c 3.5.7",
          "\u003e= 3.6.0, \u003c 3.6.2",
          "\u003e= 1.7.4, \u003c 2.3.4"
        ],
        "fixed_in": [
          "3.5.7",
          "3.6.2",
          "2.3.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade vendure to 3.5.7 or 3.6.2 or 2.3.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/vendurehq/vendure/security/advisories/GHSA-9pp3-53p2-ww9v"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40887.yaml",
      "source": "nuclei",
      "title": "nuclei template: Vendure Core - SQL Injection",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
