Patch Ticker
EnglishEN
Elevated

Grav Login plugin two-factor bypass via /login form

CVE-2026-126294

Grav website tool: a stolen password alone gives full admin control.

CVE
CVE-2026-126294 (opens in a new tab)
Score
CVSS 7.5
Public date
2026-10-27
First seen
7.5
Products

Mitigation

Update grav-plugin-login to 3.11.0 or later. Until then, set plugins.login.twofa_enabled: true or plugins.api.auth.session_enabled: false.

Can't update yet?

Add this line to the config file:

plugins.login.twofa_enabled: true

A wrong setting can stop the service or lock you out. Check the source links below first.

Summary

When the global twofa_enabled setting is off, the Grav Login plugin accepts a password alone at the /login form, remember-me cookie and magic link. An attacker can then gain full account permissions, including super-admin.

Affected when

  • Grav 2.x sites that also run the API plugin
  • global twofa_enabled setting off (the default)
  • plugins.api.auth.session_enabled on (the default)

4 other Incidents of this product in the last 30 days

Incidents by product: grav

Other recent Incidents of grav

Read the advisory · github.com (opens in a new tab)