GHSA-h6mp-mc7g-mg49 scheb/two-factor-bundle bypass two-factor authentication with unverified JWT trusted device token
An attacker can bypass two-factor authentication by generating trusted device cookies using a vulnerable JWT library, allowing unauthorized access to user accounts.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-h6mp-mc7g-mg49?
GHSA-h6mp-mc7g-mg49 is an authentication bypass vulnerability in scheb/two-factor-bundle, published on 21 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Which versions are affected by GHSA-h6mp-mc7g-mg49?
2 open source packages ship an affected version, including scheb/two-factor-bundle.
| Package | Affected | Fixed in |
|---|---|---|
scheb/two-factor-bundle Packagist | From 3.0.0 | 3.7.0 |
scheb/two-factor-bundle Packagist | From 3.0.0 | 3.7.0 |
How do I fix GHSA-h6mp-mc7g-mg49?
Upgrade scheb/two-factor-bundle to 3.7.0 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is GHSA-h6mp-mc7g-mg49 being exploited?
There is no known exploitation of GHSA-h6mp-mc7g-mg49 in the wild and no public exploit code.