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

Published Nov 27, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/jsonschema2popo2<=3.0.3

Event History

Nov 27, 2026
CVE Published
via MITRE·04:10 PM
Data Sourced
via MITRE·04:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

Which deployments are most exposed?

Deployments that generate Python modules from JSON Schemas supplied by untrusted or externally controlled parties are exposed. The injected code executes when the generated module is imported.

2

What does an attacker need to do to trigger the issue?

The attacker needs to supply a JSON Schema containing an injection payload in a default or format value. A single quote in a string-property default can break out of the generated __init__ signature and inject Python code.

3

How can I identify potentially affected generated code?

Review use of JSONSchema2PoPo2 through version 3.0.3 and identify modules generated from schemas with externally controlled default or format values. Generated modules that are subsequently imported are the relevant execution point.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203