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.
Published: 2026-07-15
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Wed, 15 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Frappe
Frappe erpnext
Vendors & Products Frappe
Frappe erpnext

Wed, 15 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 15 Jul 2026 16:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T16:02:44.516Z

Reserved: 2026-06-16T16:44:00.624Z

Link: CVE-2026-55242

cve-icon Vulnrichment

Updated: 2026-07-15T16:02:34.098Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T03:30:18Z

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

  • CWE-863

    Incorrect Authorization