CVE-2026-137999
Received Received - Intake

JSONSchema2PoPo2 Code Injection via Unescaped Default Values

Vulnerability report for CVE-2026-137999, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-27

Last updated on: 2026-11-27

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-27
Last Modified
2026-11-27
Generated
2026-11-27
AI Q&A
2026-11-27
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
MikeDombo JSONSchema2PoPo2 From 0 (inc) to 3.0.3 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a code injection flaw in JSONSchema2PoPo2 through version 3.0.3. Attackers can inject Python code by supplying malicious JSON Schema default or format values that are written unescaped into generated code. By inserting a single quote in a string property default, they break out of the string literal in the generated __init__ signature, allowing arbitrary code execution when the module is imported.

Detection Guidance

To detect this vulnerability, inspect Python modules generated by JSONSchema2PoPo2 versions 3.0.3 or earlier for unescaped single quotes in string defaults. Check for suspicious default values in generated __init__ signatures that could break out of string literals. Review schema files processed by the tool for malformed string defaults containing quotes or executable code patterns.

Impact Analysis

If you use JSONSchema2PoPo2 to generate Python classes from untrusted JSON schemas, an attacker could craft a malicious schema that executes arbitrary code with your privileges when you import the generated module. This could lead to data theft, system compromise, or further network attacks depending on your environment.

Mitigation Strategies

Immediately upgrade JSONSchema2PoPo2 to the latest patched version. Avoid using untrusted JSON schemas with the tool. If you must use existing generated modules, audit them for injected code by checking default values and __init__ signatures. Consider regenerating modules from trusted schemas after updating.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-137999. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...