{"id":"CVE-2026-133309","summary":"@scalar/typebox before 0.1.4 Code Injection via TypeCompiler Schema Strings","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().","aliases":["GHSA-976x-prgx-qv35"],"modified":"2026-11-19T18:00:10.111107761Z","published":"2026-11-19T16:32:28.508Z","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"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/scalar/typebox","events":[{"introduced":"a89e80f995163904a6e68eba7ae8400c0058f9de"},{"fixed":"f917c3bf68f48c52bd535983c71fb9aaab0de1a2"},{"fixed":"21d55f035a83868a3577be2142b9c9bbc125969b"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0.1.0"},{"fixed":"0.1.4"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"21d55f035a83868a3577be2142b9c9bbc125969b"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v0.1.3","v0.1.1","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133309.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","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"}]}