CVE-2026-133309
@scalar/typebox before 0.1.4 Code Injection via TypeCompiler Schema Strings
High · 8.5Fix available
- CVSS
- 8.5
- EPSS
- 0.21% (p12)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-19
- Product
- scalar typebox
- Aliases
- GHSA-976x-prgx-qv35
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
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().
Fixed in
0.1.4
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | typebox | >=0.1.0, <0.1.4 | 0.1.4 |
Sources
- NVD · first seen 15d ago · NVD terms of use
- OSV · first seen 15d ago · CC-BY 4.0
- CVE List · first seen 15d ago · CVE Terms of Use
References
- https://github.com/scalar/typebox/pull/5 patch
- https://github.com/scalar/typebox/commit/21d55f035a83868a3577be2142b9c9bbc125969b patch
- https://github.com/scalar/typebox/blob/v0.1.3/src/compiler/compiler.ts#L427 technical-description
- https://github.com/sinclairzx81/sinclair-typebox/security/advisories/GHSA-976x-prgx-qv35 related
- https://www.npmjs.com/package/@scalar/typebox product
- https://github.com/scalar/typebox product
- https://www.vulncheck.com/advisories/scalar-typebox-before-0.1.4-code-injection-via-typecompiler-schema-strings third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133309.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-133309 advisory