CVE-2026-31017 Server-side request forgery in n/a
Attackers can exploit insufficient HTML sanitization in PDF generation to force server-side requests to internal services, potentially disclosing sensitive information.
- 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-31017?
CVE-2026-31017 is a critical server-side request forgery vulnerability in Frappe Erpnext, published on 8 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A Server-Side Request Forgery (SSRF) vulnerability exists in the Print Format functionality of ERPNext v16.0.1 and Frappe Framework v16.1.1, where user-supplied HTML is insufficiently sanitized before being rendered into PDF. When generating PDFs from user-controlled HTML content, the application allows the inclusion of HTML elements such as <iframe> that reference external resources. The PDF rendering engine automatically fetches these resources on the server side. An attacker can abuse this behavior to force the server to make arbitrary HTTP requests to internal services, including cloud metadata endpoints, potentially leading to sensitive information disclosure.
Weakness: CWE-918
Which versions are affected by CVE-2026-31017?
It affects 2 products.
Products include Frappe Erpnext, Frappe Frappe.
How do I fix CVE-2026-31017?
No fix has been published for CVE-2026-31017 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2026-31017 being exploited?
There is no known exploitation of CVE-2026-31017 in the wild and no public exploit code.
Other vulnerabilities in Frappe Erpnext
Sources
Also known as GHSA-2vgp-8568-m98f.