CVE-2026-137999
published high CVSS 4.0 · 8.5JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MikeDombo | — | JSONSchema2PoPo20 through 3.0.3 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MikeDombo | JSONSchema2PoPo2 | 0 through 3.0.3 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
5- https://github.com/MikeDombo/JSONSchema2PoPo2/blob/54c3f5f43729c5d98a537a6441f8eda5e3b4e119/jsonschema2popo/python/python_class.tmpl#L70
- https://github.com/MikeDombo/JSONSchema2PoPo2/commit/cdb00f607a149f75b79a0f342b5881fd49ab4667
- https://github.com/MikeDombo/JSONSchema2PoPo2/issues/24
- https://github.com/MikeDombo/JSONSchema2PoPo2/pull/25
- VulnCheck Advisory: JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template https://www.vulncheck.com/advisories/jsonschema2popo2-through-3.0.3-code-injection-via-python-class-tmpl-template
Provider assertions
2VulnCheck · cna
JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ad44239ef56889d1b9285bf24d721687fd6a7528c8755082ca9d5f4c4143a171
- Ingested
- 30 Nov 2026, 18:37:20 UTC
- Source record
- Official CVE record