{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "15.111.0"
              },
              {
                "introduced": "16.0.0"
              },
              {
                "fixed": "16.22.0"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2b3e3dfd83558539f79bc6a5ecd5462f6678dd21"
            },
            {
              "introduced": "c3fdb191b9c6bbb2b0d98d0156eafd9a3faa96b0"
            },
            {
              "fixed": "054b20a2ae1bdea44694cca72d17412945171cab"
            }
          ],
          "repo": "https://github.com/frappe/erpnext",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-pxf3-4gvc-v45j"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1336",
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55242.json"
  },
  "details": "ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.111.0 and 16.22.0, an authenticated user with a standard operational role can trigger server-side template injection through a configuration field, resulting in unauthorized disclosure of data outside the user's normal permission scope. This issue is fixed in versions 15.111.0 and 16.22.0.",
  "id": "CVE-2026-55242",
  "modified": "2026-07-17T03:42:06.236539619Z",
  "published": "2026-07-15T15:38:31.577Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55242.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/frappe/erpnext/security/advisories/GHSA-pxf3-4gvc-v45j"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-55242"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ERPNext: Server-Side Template Injection (SSTI) in Batch autonaming via Stock Settings.naming_series_prefix"
}