CVE-2026-55242

ERPNext: Server-Side Template Injection (SSTI) in Batch autonaming via Stock Settings.naming_series_prefix

Published Jul 15, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

ERPNext versions older than 15.111.0 and 16.22.0 allow a server‑side template injection (SSTI) vulnerability when the Stock Settings field "naming_series_prefix" is altered. The injection can be performed by any authenticated user who has a standard operational role but is not otherwise privileged. This weakness can cause the system to evaluate arbitrary template expressions, giving the attacker read access to data that normally would be protected by the user’s permission scope, thereby leading to serious confidentiality breaches.

Affected Systems

The affected product is ERPNext from the frappe:erpnext vendor. The vulnerability applies to all releases before 15.111.0 and 16.22.0. Users running these older revisions are at risk and should verify their installation version.

Risk and Exploitability

The CVSS base score of 8.8 indicates high severity, and the EPSS score of less than 1% indicates a very low current exploitation probability. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is an authenticated session with a standard operational role, inferred from the description that the flaw is triggered through a configuration field. An attacker would need to modify the "naming_series_prefix" setting within the Stock Settings configuration interface and then cause the system to render it with the templating engine, which can make an attacker read arbitrary sensitive data outside their normal access rights.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ERPNext to v15.111.0 or later, or v16.22.0 or later, to include the fix.
  • Remove or restrict the Stock Settings permission from standard operational roles so they cannot edit the naming_series_prefix field.
  • If an upgrade cannot be performed immediately, temporarily disable the templating engine’s execution for the naming_series_prefix setting or enforce input validation to block embedded expressions.

Generated by OpenCVE AI on July 31, 2026 at 03:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Frappe
Frappe erpnext
Vendors & Products Frappe
Frappe erpnext
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title ERPNext: Server-Side Template Injection (SSTI) in Batch autonaming via Stock Settings.naming_series_prefix
Weaknesses CWE-1336
CWE-863
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

  • CWE-863

    Incorrect Authorization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 4:02 PM
Reserved
Jun 16, 2026, 4:44 PM
Status
Deferred
Published
Jul 15, 2026, 4:16 PM
Modified
Oct 24, 2026, 9:10 PM