CVE-2026-38431 Code injection in n/a

Critical 9.8 Published Updated

Attackers with email template permissions can execute arbitrary code on the server via Server-Side Template Injection in ERPNext.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-38431?

CVE-2026-38431 is a critical code injection vulnerability in Frappe Erpnext, published on 5 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

ERPNext v15.103.1 and before is vulnerable to Server-Side Template Injection (SSTI). An attacker with permission to create or edit email templates can inject template expressions that are executed on the server when the template is rendered.

Weakness: CWE-94

Which versions are affected by CVE-2026-38431?

It affects 1 product.

Products include Frappe Erpnext.

How do I fix CVE-2026-38431?

No fix has been published for CVE-2026-38431 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-38431 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-38431 exists.

All Frappe Erpnext vulnerabilities

Sources

Also known as GHSA-qwh3-h35h-9j9f.

Is CVE-2026-38431 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free