{"affected":[{"defaultStatus":"unaffected","ecosystem":"pypi","packageName":"jsonschema2popo2","product":"JSONSchema2PoPo2","source":"CNA: VulnCheck","vendor":"MikeDombo","versions":[{"lessThanOrEqual":"3.0.3","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-137999","cwes":["CWE-94"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.5,"severity":"high","source":"CNA: VulnCheck","vector":"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","version":"4.0"},{"score":7.8,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"score":8.5,"severity":"high","source":"NVD: disclosure@vulncheck.com","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"score":7.8,"severity":"high","source":"NVD: disclosure@vulncheck.com","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1795799879310,"publishedAt":1795795816972,"references":[{"source":"CNA: VulnCheck","tags":["issue-tracking"],"url":"https://github.com/MikeDombo/JSONSchema2PoPo2/issues/24"},{"source":"CNA: VulnCheck","tags":["issue-tracking","patch"],"url":"https://github.com/MikeDombo/JSONSchema2PoPo2/pull/25"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/MikeDombo/JSONSchema2PoPo2/commit/cdb00f607a149f75b79a0f342b5881fd49ab4667"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/MikeDombo/JSONSchema2PoPo2/blob/54c3f5f43729c5d98a537a6441f8eda5e3b4e119/jsonschema2popo/python/python_class.tmpl#L70"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/jsonschema2popo2-through-3.0.3-code-injection-via-python-class-tmpl-template"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/MikeDombo/JSONSchema2PoPo2/blob/54c3f5f43729c5d98a537a6441f8eda5e3b4e119/jsonschema2popo/python/python_class.tmpl#L70"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/MikeDombo/JSONSchema2PoPo2/commit/cdb00f607a149f75b79a0f342b5881fd49ab4667"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/MikeDombo/JSONSchema2PoPo2/issues/24"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/MikeDombo/JSONSchema2PoPo2/pull/25"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://www.vulncheck.com/advisories/jsonschema2popo2-through-3.0.3-code-injection-via-python-class-tmpl-template"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/MikeDombo/JSONSchema2PoPo2/pull/25"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/MikeDombo/JSONSchema2PoPo2/commit/cdb00f607a149f75b79a0f342b5881fd49ab4667"}],"revision":"c544ca103067f6f5a61e4c60309b4051a1adfe3bc669f74a4d78a72aff4e9673","sources":[{"modifiedAt":1795795816972,"name":"CNA: VulnCheck","retrievedAt":1795799493424,"url":"https://www.cve.org/CVERecord?id=CVE-2026-137999"},{"modifiedAt":1795799879310,"name":"NVD","retrievedAt":1795803444142,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137999"}],"ssvc":null,"status":"published","title":"JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template","updatedAt":1795803444142}