JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template

State
Published
Severity
8.5 High
Published
Nov 27, 2026
Updated
Nov 30, 2026
Reserved
Nov 27, 2026

Read the record on cve.org

Description

JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated __init__ signature, executing injected code when the generated module is imported.

ProductVersions
JSONSchema2PoPo2 MikeDombo3.0.3 and earlier 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.