CVE-2026-137999 JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template

Published Updated

Attackers supplying crafted JSON Schema defaults can inject Python code into generated modules that executes when imported; developers generating code from untrusted schemas should care.

CVSS score

High

8.5/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Local or same network
No login, a user must click or open something

What is CVE-2026-137999?

CVE-2026-137999 is a high-severity code injection vulnerability in MikeDombo JSONSchema2PoPo2, published on 27 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-94

How severe is CVE-2026-137999?

CVE-2026-137999 scores 8.5 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Local
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
Passive
Confidentiality
High
Integrity
High
Availability
High

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

Which versions are affected by CVE-2026-137999?

1 open source package ship an affected version, including jsonschema2popo2.

An affected version is exposed as installed. No special setting or call is needed.

PackageAffectedFixed in
jsonschema2popo2 PyPI
pkg:pypi/jsonschema2popo2
All versions to 3.0.3None

How do I fix CVE-2026-137999?

No fix has been published for CVE-2026-137999 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-137999 being exploited?

There is no known exploitation of CVE-2026-137999 in the wild and no public exploit code.

Sources

Also known as GHSA-qjhw-792c-66p4.

Is CVE-2026-137999 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free