@scalar/typebox before 0.1.4 Code Injection via TypeCompiler Schema Strings
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 19, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 19, 2026
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().
| Product | Versions |
|---|---|
| typebox scalar | 0.1.0 to before 0.1.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- Fix Pull RequestPatchIssue Tracker
- Patch CommitPatch
- https://github.com/scalar/typebox/blob/v0.1.3/src/compiler/compiler.ts#L427Technical Details
- GitHub Security Advisory (GHSA-976x-prgx-qv35)RelatedThird-Party Advisory
- https://www.npmjs.com/package/@scalar/typeboxProduct Page
- https://github.com/scalar/typeboxProduct Page
- VulnCheck Advisory: @scalar/typebox before 0.1.4 Code Injection via TypeCompiler Schema StringsThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.