MikeDombo JSONSchema2PoPo2 code injection in python_class.tmpl template
Only affects JSONSchema2PoPo2 3.0.3 and earlier, plus master at 54c3f5f, when a string property default in the JSON Schema contains a single quote. Fixed in 3.1.0.
- Exploited
- No known exploitation
- Fix
- Fixed in 3.1.0
- Who is exposed
- Specific setups only
Summary
Written by a model
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.
Who should check
Teams generating Python classes with JSONSchema2PoPo2 (3.0.3 or earlier) from JSON Schemas they do not fully control, such as schemas published by API providers, partners or other teams
“Anyone who generates classes from a JSON Schema they do not fully control is affected”
What to do
Check whether your setup matches what the bug needs.
Versions 3.0.3 and earlier of JSONSchema2PoPo2, and master at 54c3f5f A string property default in the JSON Schema containing a single quote, which is written unescaped into the generated __init__ signatureUpgrade to a fixed version: 3.1.0.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-137999 (JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-137999 (entry last updated 2026-11-27):
Affected:
- PyPI package jsonschema2popo2: through 3.0.3
Fixed versions: 3.1.0.
Conditions (all must be true for the bug to be hit):
- Versions 3.0.3 and earlier of JSONSchema2PoPo2, and master at 54c3f5f (source: https://github.com/MikeDombo/JSONSchema2PoPo2/issues/24)
- A string property default in the JSON Schema containing a single quote, which is written unescaped into the generated __init__ signature (source: https://github.com/MikeDombo/JSONSchema2PoPo2/issues/24)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: local access, no login, a user action.
CISA KEV: CVE-2026-137999 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-137999 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (PyPI): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/MikeDombo/JSONSchema2PoPo2/pull/25
- https://github.com/MikeDombo/JSONSchema2PoPo2/commit/cdb00f607a149f75b79a0f342b5881fd49ab4667
- https://github.com/MikeDombo/JSONSchema2PoPo2/issues/24
- https://github.com/MikeDombo/JSONSchema2PoPo2/blob/54c3f5f43729c5d98a537a6441f8eda5e3b4e119/jsonschema2popo/python/python_class.tmpl#L70
- https://www.vulncheck.com/advisories/jsonschema2popo2-through-3.0.3-code-injection-via-python-class-tmpl-template
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-137999
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-137999"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach10/20Affects PyPI packages
- Severity8.5/10CVSS 8.5
- No patch0/5No signal
What would change the score
- Would score about 74 if added to CISA KEV
- Would score about 69 if CISA's SSVC rates exploitation active
- Would score about 34 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now
Evidence 7
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-137999 |
| Record | NVD · CVE-2026-137999 |
| Other links 5 | |
| Patch | GitHub · MikeDombo/JSONSchema2PoPo2 · Pull request #25 |
| Patch | GitHub · MikeDombo/JSONSchema2PoPo2 · Commit cdb00f60 |
| Report | GitHub · MikeDombo/JSONSchema2PoPo2 · Issue #24 |
| Repository | GitHub · MikeDombo/JSONSchema2PoPo2 · jsonschema2popo/python/python_class.tmpl · L70 |
| Link | vulncheck.com · advisories/jsonschema2popo2-through-3.0.3-code-injection-via-python-class-tmpl-template |
Questions about CVE-2026-137999
Is CVE-2026-137999 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A string property default in the JSON Schema that contains a single quote is written unescaped into the generated __init__ signature. This lets injected Python code run as the user when the generated module is imported.
Source: github.com, github.com
Which versions are affected by CVE-2026-137999?
jsonschema2popo2 (PyPI): through 3.0.3.
Source: cve.now feed data
Am I affected, and how do I check?
Versions 3.0.3 and earlier of JSONSchema2PoPo2, and master at commit 54c3f5f, are affected when a schema uses a string property default containing a single quote. To check a version, look at the installed JSONSchema2PoPo2 package version.
Source: github.com, github.com
How do I fix CVE-2026-137999?
Upgrade JSONSchema2PoPo2 to 3.1.0, which contains the fix. No other patch ids or workaround are named in the facts.
Source: github.com, github.com
Related
- CVE-2026-134963WordPress WPMasterToolKit plugin <= 2.26.1 - Arbitrary Code Execution vulnerability
- CVE-2026-136835Jenkins Script Security Plugin 1436.v1082791135e4 and earlier does not reject @Builder annotations whose builderStrategy member names an…
- CVE-2026-106125Sneeit Framework <= 8.7 - Unauthenticated Remote Code Execution via sneeit_compact_menu_mega_content_callback
- CVE-2026-135203JavaScript payload-mapping sandbox escape allows arbitrary code execution in the connectivity service
- CVE-2026-137964ToolJet before 3.21.96-LTS Command Injection via Release Workflow Pull Request Title
- CVE-2026-82489openIMIS < 2026-10 Report Module Unauthenticated RCE via reportbro/preview
No corrections so far. Something wrong on this page? Report an error.