CVE-2026-31017: A Server-Side Request Forgery (SSRF) vulnerability exists in the Print Format functionality of ERPNext v16....
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.
Security readout for executives and security teams
Plain-English summary
CVE-2026-31017 is an SSRF issue in ERPNext/Frappe PDF generation. User-controlled print-format HTML can cause the server to fetch attacker-chosen resources. If reachable in production, this could expose internal services or cloud metadata. The provided sources do not identify a vendor patch or active exploitation.
Executive priority
Treat as urgent for exposed ERPNext/Frappe environments, especially cloud deployments. Prioritize inventory, vendor guidance, access restriction, and egress controls. Business risk is potential disclosure of sensitive internal or cloud-hosted information.
Technical view
ERPNext v16.0.1 and Frappe Framework v16.1.1 are described as affected. Insufficient sanitization of HTML before PDF rendering permits elements such as iframes to trigger server-side HTTP requests. CVSS is 9.1, network exploitable, low complexity, no privileges, no user interaction, with high confidentiality and integrity impact.
Likely exposure
Highest concern is internet-accessible ERPNext/Frappe deployments where untrusted users can influence Print Format or PDF-rendered HTML. Cloud-hosted deployments may face added risk if metadata endpoints or internal services are reachable from the application server.
Exploitation context
The source bundle marks KEV as false, and no cited source confirms active exploitation. The reported attack path is SSRF through PDF rendering, potentially reaching internal services or cloud metadata endpoints from the server’s network position.
Researcher notes
The CVE record’s affected product fields are incomplete, but the description names ERPNext v16.0.1 and Frappe Framework v16.1.1. No patch, commit, or vendor advisory is included in the provided sources. Validate findings against official project guidance before concluding remediation status.
Mitigation direction
Check ERPNext and Frappe vendor guidance for fixed versions or official workarounds.
Restrict access to Print Format and PDF generation for untrusted users.
Limit server egress to internal services and cloud metadata endpoints.
Review HTML sanitization policy for PDF-rendered content, especially external resource elements.
Monitor application and egress logs for unusual PDF-triggered outbound requests.
Validation and detection
Inventory ERPNext and Frappe versions, focusing on v16.0.1 and v16.1.1.
Confirm whether Print Format accepts user-controlled HTML in your deployment.
Review PDF generation paths exposed to anonymous or low-trust users.
Check network controls blocking application access to metadata and internal endpoints.
Look for unexpected outbound requests associated with PDF rendering activity.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-918: Information exposure and cloud metadata lookup
Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references SSRF or metadata access, so cloud discovery and credential material review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
2Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: yesTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-918 · source CWE mapping
Server-Side Request Forgery (SSRF)
Server-Side Request Forgery (SSRF) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.