{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.1.0"
                  },
                  {
                    "fixed": "0.1.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "21d55f035a83868a3577be2142b9c9bbc125969b"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "a89e80f995163904a6e68eba7ae8400c0058f9de"
            },
            {
              "fixed": "f917c3bf68f48c52bd535983c71fb9aaab0de1a2"
            },
            {
              "fixed": "21d55f035a83868a3577be2142b9c9bbc125969b"
            }
          ],
          "repo": "https://github.com/scalar/typebox",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-976x-prgx-qv35"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133309.json"
  },
  "details": "@scalar/typebox before 0.1.4 contains a code injection vulnerability in TypeCompiler that allows attackers to execute JavaScript by supplying crafted schema strings. Attackers can inject single-quote breakouts into string format, Kind names, property keys or Literal values to run arbitrary JavaScript in the host Node.js process during Compile() and Check().",
  "id": "CVE-2026-133309",
  "modified": "2026-11-19T17:45:45.024953759Z",
  "published": "2026-11-19T16:32:28.508Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133309.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/scalar/typebox"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/scalar/typebox/blob/v0.1.3/src/compiler/compiler.ts#L427"
    },
    {
      "type": "FIX",
      "url": "https://github.com/scalar/typebox/commit/21d55f035a83868a3577be2142b9c9bbc125969b"
    },
    {
      "type": "FIX",
      "url": "https://github.com/scalar/typebox/pull/5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/sinclairzx81/sinclair-typebox/security/advisories/GHSA-976x-prgx-qv35"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-133309"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/@scalar/typebox"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/scalar-typebox-before-0.1.4-code-injection-via-typecompiler-schema-strings"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "@scalar/typebox before 0.1.4 Code Injection via TypeCompiler Schema Strings"
}