What’s Vulnerable › Vulnerabilities
CVE-2021-25985: FactorJS - Insufficient Session Expiration Leads to a Local Account Takeover
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-11-16 · updated 2026-06-17
- Weakness: CWE-613
Description
In Factor (App Framework & Headless CMS) v1.0.4 to v1.8.30, improperly invalidate a user’s session even after the user logs out of the application. In addition, user sessions are stored in the browser’s local storage, which by default does not have an expiration time. This makes it possible for an attacker to steal and reuse the cookies using techniques such as XSS attacks, followed by a local account takeover.
Affected products
- FactorJS Factor: from 1.0.4 through 1.8.30
References
- https://github.com/FactorJS/factor/blob/v1.8.30/%40factor/user/util.ts#L65
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985
- https://github.com/FactorJS/factor/blob/v1.8.30/%40factor/user/util.ts#L65
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985
Get alerted when CVE-2021-25985 or the next vulnerability affects your stack