{"id":"CVE-2026-133309","state":"PUBLISHED","title":"@scalar/typebox before 0.1.4 Code Injection via TypeCompiler Schema Strings","description":"@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().","publishedAt":"2026-11-19T16:32:28.508Z","updatedAt":"2026-11-19T20:42:05.314Z","severity":{"score":8.5,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["scalar typebox"],"affected":[{"vendor":"scalar","product":"typebox","packageURL":"pkg:npm/%40scalar/typebox","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.1.4","versionType":"semver"}],"repo":"https://github.com/scalar/typebox"}],"references":["https://github.com/scalar/typebox/pull/5","https://github.com/scalar/typebox/commit/21d55f035a83868a3577be2142b9c9bbc125969b","https://github.com/scalar/typebox/blob/v0.1.3/src/compiler/compiler.ts#L427","https://github.com/sinclairzx81/sinclair-typebox/security/advisories/GHSA-976x-prgx-qv35","https://www.npmjs.com/package/@scalar/typebox","https://github.com/scalar/typebox","https://www.vulncheck.com/advisories/scalar-typebox-before-0.1.4-code-injection-via-typecompiler-schema-strings"],"weaknesses":["CWE-94"],"ingestedAt":"2026-11-19T20:48:06.490Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/133xxx/CVE-2026-133309.json","commit":"df4bad11dc2cda2273000b9a11e16e21276782dd","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-133309","state":"PUBLISHED","datePublished":"2026-11-19T16:32:28.508Z","dateUpdated":"2026-11-19T20:42:05.314Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-19T16:21:24.008Z"},"containers":{"cna":{"title":"@scalar/typebox before 0.1.4 Code Injection via TypeCompiler Schema Strings","descriptions":[{"lang":"en","value":"@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()."}],"affected":[{"vendor":"scalar","product":"typebox","packageURL":"pkg:npm/%40scalar/typebox","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.1.4","versionType":"semver"}],"repo":"https://github.com/scalar/typebox"}],"references":[{"url":"https://github.com/scalar/typebox/pull/5","tags":["patch","issue-tracking"],"name":"Fix Pull Request"},{"url":"https://github.com/scalar/typebox/commit/21d55f035a83868a3577be2142b9c9bbc125969b","tags":["patch"],"name":"Patch Commit"},{"url":"https://github.com/scalar/typebox/blob/v0.1.3/src/compiler/compiler.ts#L427","tags":["technical-description"]},{"url":"https://github.com/sinclairzx81/sinclair-typebox/security/advisories/GHSA-976x-prgx-qv35","tags":["related","third-party-advisory"],"name":"GitHub Security Advisory (GHSA-976x-prgx-qv35)"},{"url":"https://www.npmjs.com/package/@scalar/typebox","tags":["product"]},{"url":"https://github.com/scalar/typebox","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/scalar-typebox-before-0.1.4-code-injection-via-typecompiler-schema-strings","name":"VulnCheck Advisory: @scalar/typebox before 0.1.4 Code Injection via TypeCompiler Schema Strings","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.5,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-19T16:32:28.508Z"},"datePublic":"2026-11-17T00:00:00.000Z","credits":[{"lang":"en","value":"Mohd Absar Ansari","type":"finder"},{"lang":"en","value":"hanspagel","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T20:28:20.898407Z","id":"CVE-2026-133309","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-19T20:42:05.314Z"}}]}}}