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
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.
| Product | Versions |
|---|---|
| JSONSchema2PoPo2 MikeDombo | 3.0.3 and earlier 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
- https://github.com/MikeDombo/JSONSchema2PoPo2/issues/24Issue Tracker
- https://github.com/MikeDombo/JSONSchema2PoPo2/pull/25Issue TrackerPatch
- https://github.com/MikeDombo/JSONSchema2PoPo2/commit/cdb00f607a149f75b79a0f342b5881fd49ab4667Patch
- https://github.com/MikeDombo/JSONSchema2PoPo2/blob/54c3f5f43729c5d98a537a6441f8eda5e3b4e119/jsonschema2popo/python/python_class.tmpl#L70Technical Details
- VulnCheck Advisory: JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl TemplateThird-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.