Jsonschema2Popo2
Monthly
Code injection in JSONSchema2PoPo2 through 3.0.3 lets a crafted JSON Schema smuggle Python statements into the generated class file, which execute when that generated module is imported. The root cause is CWE-94: schema-supplied values (string defaults, format, pattern, validations, enum values and descriptions) were pasted into the generated source unescaped, so a single quote inside a string property default breaks out of the literal in the generated __init__ signature; the same escaping gap affected the JavaScript and Go backends. Exposure is confined to the code generation workflow rather than a deployed service, since the flaw requires someone to run the generator against the malicious schema and then import the resulting module (CVSS 4.0 AV:L, UI:P, no privileges required); no public exploit code was identified at time of analysis and the issue is not in CISA KEV. Vendor-released patch: 3.1.0.
Code injection in JSONSchema2PoPo2 through 3.0.3 lets a crafted JSON Schema smuggle Python statements into the generated class file, which execute when that generated module is imported. The root cause is CWE-94: schema-supplied values (string defaults, format, pattern, validations, enum values and descriptions) were pasted into the generated source unescaped, so a single quote inside a string property default breaks out of the literal in the generated __init__ signature; the same escaping gap affected the JavaScript and Go backends. Exposure is confined to the code generation workflow rather than a deployed service, since the flaw requires someone to run the generator against the malicious schema and then import the resulting module (CVSS 4.0 AV:L, UI:P, no privileges required); no public exploit code was identified at time of analysis and the issue is not in CISA KEV. Vendor-released patch: 3.1.0.