Search

Find a vulnerability

Search criteria

    1 vulnerability found for JSONSchema2PoPo2 by MikeDombo

    CVE-2026-137999 (GCVE-0-2026-137999)

    Vulnerability from cvelistv5 – Published: 2026-11-27 16:10 – Updated: 2026-11-27 16:10
    VLAI
    Title
    JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template
    Summary
    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.
    CWE
    • CWE-94 - Improper Control of Generation of Code ('Code Injection')
    Assigner
    VulnCheck CNA under the mitre root
    CNA scorecard B 84/100 over 9382 records in the last 180 days details
    Impacted products
    Vendor Product Version
    MikeDombo JSONSchema2PoPo2 Affected: 0 , ≤ 3.0.3 (semver)
    Create a notification for this product.
    Date Public
    2026-11-25 00:00
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "packageURL": "pkg:pypi/jsonschema2popo2",
              "product": "JSONSchema2PoPo2",
              "repo": "https://github.com/MikeDombo/JSONSchema2PoPo2",
              "vendor": "MikeDombo",
              "versions": [
                {
                  "lessThanOrEqual": "3.0.3",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Dilanka Kaushal Hewage (r3vpwnx)"
            }
          ],
          "datePublic": "2026-11-25T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 8.5,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "PASSIVE",
                "vectorString": "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",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH"
              },
              "format": "CVSS"
            },
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-94",
                  "description": "Improper Control of Generation of Code (\u0027Code Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-27T16:10:16.972Z",
            "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
            "shortName": "VulnCheck"
          },
          "references": [
            {
              "tags": [
                "issue-tracking"
              ],
              "url": "https://github.com/MikeDombo/JSONSchema2PoPo2/issues/24"
            },
            {
              "tags": [
                "issue-tracking",
                "patch"
              ],
              "url": "https://github.com/MikeDombo/JSONSchema2PoPo2/pull/25"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/MikeDombo/JSONSchema2PoPo2/commit/cdb00f607a149f75b79a0f342b5881fd49ab4667"
            },
            {
              "tags": [
                "technical-description"
              ],
              "url": "https://github.com/MikeDombo/JSONSchema2PoPo2/blob/54c3f5f43729c5d98a537a6441f8eda5e3b4e119/jsonschema2popo/python/python_class.tmpl#L70"
            },
            {
              "name": "VulnCheck Advisory: JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.vulncheck.com/advisories/jsonschema2popo2-through-3.0.3-code-injection-via-python-class-tmpl-template"
            }
          ],
          "title": "JSONSchema2PoPo2 through 3.0.3 Code Injection via python_class.tmpl Template",
          "x_generator": {
            "engine": "vulncheck-endgame"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "assignerShortName": "VulnCheck",
        "cveId": "CVE-2026-137999",
        "datePublished": "2026-11-27T16:10:16.972Z",
        "dateReserved": "2026-11-27T15:59:22.516Z",
        "dateUpdated": "2026-11-27T16:10:16.972Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }