Skip to content

CVE-2026-137553

Frappe Blind SQL Injection via X-Frappe-Request-Id Header (CVE-2026-137553)

High 8.2 Vendor: Frappe / ERPNext Published

Frappe before 15.120.0 and 16.x before 16.33.0 has a blind SQL injection flaw in the X-Frappe-Request-Id header when monitoring is enabled. Remote unauthenticated attackers can infer database contents. Upgrade to Frappe 16.33.0 or 15.120.0.

What happened

Frappe's handling of the X-Frappe-Request-Id HTTP header contains a blind SQL injection when monitoring is enabled. A remote attacker can send a crafted value in that header without authenticating, then use the application's response behaviour to infer database contents one piece at a time. The flaw is CWE-89.

The CVSS 4.0 score is 8.2 (High), with a network attack vector, no privileges or user interaction required, and high confidentiality impact but no integrity or availability impact. In practice, an attacker could read sensitive data from the database, but not modify or deny service.

The CVE record and the referenced advisory do not state that this flaw is being exploited or that exploit code has been publicly disclosed.

Who is affected

Affected versions are:

  • Frappe 16.x: 16.0.0 through versions before 16.33.0.
  • Frappe releases before 15.120.0.

The SQL injection is reachable only when monitoring is enabled. The available sources do not state whether monitoring is enabled by default, so version checks and configuration review are both relevant. Instances where the Frappe service is reachable from untrusted networks should be treated as a priority.

What to do now

No vendor workaround is listed in the referenced sources; the fix is to upgrade.

  1. Upgrade Frappe to a fixed release: 16.33.0 for the 16.x line, or 15.120.0 for releases before 15.120.0.
  2. If you cannot patch immediately, restrict network access to the Frappe service and review whether monitoring needs to remain enabled.
  3. After upgrading, confirm the instance no longer matches the affected versions and reassess network exposure.

How to detect it

Review web server and application logs for HTTP requests carrying unusual or encoded values in the X-Frappe-Request-Id header. Confirm whether monitoring is enabled; if it is enabled, treat the instance as exposed until the version is confirmed fixed.

Beyond the patch

After patching, this is a reminder that an unauthenticated, network-reachable flaw in a core framework is an exposure problem before it is a patching problem. Virtual CISO Services (vCISO) helps identify exposed services that should not be reachable at all, and Implementation & Assessment Services can validate injection and authentication handling before a CVE forces a rushed upgrade.

Affected and fixed versions

ProductAffectedFixed in
frappe16.0.0 – < 16.33.016.33.0
15.120.0
frappe– < 15.120.016.33.0
15.120.0

References

Sources: the CVE record (MITRE), NVD, CISA KEV and SSVC, ENISA EUVD, FIRST EPSS and the vendor's own advisory. Scores and dates are shown as those sources publish them.

Written with AI assistance from the sources above and checked automatically against them before publication.