@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

Read the record on cve.org

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().

ProductVersions
typebox scalar0.1.0 to before 0.1.4 Affected

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.