Skip to content

CVE-2026-137552

Frappe Framework 2FA bypass via OAuth2 password grant (CVE-2026-137552)

High 8.7 Vendor: Frappe / ERPNext Published

Frappe Framework before 15.121.1 and 16.x before 16.35.0 accepts an undocumented OAuth2 password grant that returns a full-access token without enforcing 2FA. Upgrade to 15.121.1 or 16.35.0.

What happened

Frappe Framework's OAuth2 token endpoint accepts the Resource Owner Password Credentials grant, a password grant that the vendor has not documented. The grant issues a full-access OAuth token when a user supplies a valid username and password, but it does not enforce two-factor authentication or forced password resets. This means an attacker who has a user's login can obtain a session token without ever completing the 2FA challenge.

The CVSS 4.0 vector rates this 8.7 high: reachable over the network, low attack complexity, no user interaction, with high confidentiality impact on the affected system and no integrity or availability impact. No active exploitation is reported in the public advisories referenced below, and there is no CISA KEV entry.

Who is affected

Frappe Framework is affected in all versions before 15.121.1 and in the 16.x line from 16.0.0 up to, but not including, 16.35.0. The affected component is the OAuth2 token endpoint, so any deployment that exposes that endpoint should treat itself as affected until upgraded.

What to do now

  1. Patch to a fixed release: 16.35.0 for 16.x installations, or 15.121.1 for installations on earlier versions.
  2. Until patching is complete, restrict network access to the OAuth2 token endpoint to trusted networks or identity providers only. The public advisories do not describe a workaround.
  3. After patching, review token endpoint logs for password-grant requests and investigate any accounts where 2FA should have applied but a password-grant token was issued.

How to detect it

Look for OAuth2 token endpoint requests using the grant_type=password value. Investigate successful token issuance for accounts where two-factor authentication or a forced password reset should have been required.

Beyond the patch

Authentication flaws like this often survive until a pen test or hardening review maps the actual OAuth2 flow. Implementation & Assessment Services can validate that 2FA and password reset policies are enforced on every token path. Because Frappe is embedded in ERPNext and custom applications, patching also depends on supplier cadence; Supply Chain Defense & Third-Party Risk tracks which components you run and how quickly the vendor ships fixes.

Affected and fixed versions

ProductAffectedFixed in
frappe16.0.0 – < 16.35.016.35.0
15.121.1
frappe– < 15.121.116.35.0
15.121.1

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.