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

- Severity: High 7.8 (CVSS:3.1, scored by Mend) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2021-11-16T09:45:19.000Z
- Modified: 2026-06-17T03:42:43.977Z
- Weaknesses: CWE-613
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: Mend

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

(As written by CVE List.)

## Affected

- FactorJS Factor: from 1.0.4 before unspecified; from unspecified up to 1.8.30
- darwin factor: from 1.0.4 up to 1.8.30

## Every score

- Mend: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/FactorJS/factor/blob/v1.8.30/%40factor/user/util.ts#L65>
- <https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-25985](https://www.cve.org/CVERecord?id=CVE-2021-25985), CVE Terms of Use, modified 2025-04-30
- NVD: [CVE-2021-25985](https://nvd.nist.gov/vuln/detail/CVE-2021-25985), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25985 · Whole record: https://cve.day/CVE-2021-25985.json · Rebuilt by cve.day 2026-11-25T22:58:05.581Z
