Home / FactorJS / Factor / CVE-2021-25985
CVE-2021-25985: is it exploited, and which versions of FactorJS Factor are affected and fixed?
CVE-2021-25985 is a session does not expire vulnerability in FactorJS Factor. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: Factor from 1.0.4 before unspecified and Factor through 1.8.30 (CVE record by Mend). Fixed in unspecified (CVE record by Mend). Severity: High (7.8, CVSS 3.1, from Mend).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 28, 2026, 20:15 UTC and NVD November 19, 2026, 07:53 UTC.
What is CVE-2021-25985?
FactorJS - Insufficient Session Expiration Leads to a Local Account Takeover
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.
From the CVE record by Mend, last updated April 30, 2025, 15:44 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| FactorJS | Factor | from 1.0.4 before unspecified through 1.8.30 | unspecified |
As the CVE record by Mend states it, last updated April 30, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| darwin | factor | from 1.0.4 through 1.8.30 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:42 UTC.
How severe is CVE-2021-25985?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | Mend |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-25985 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, April 30, 2025)
- EPSS
- 0.78% probability of exploitation activity in the next 30 days, percentile 57.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-613 session does not expire
How do I fix it? (from the CVE record)
Update to 3.0.1
Where are the vendor advisories and references?
- https://github.com/FactorJS/factor/blob/v1.8.30/%40factor/user/util.ts#L65 x_refsource_MISC
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985 x_refsource_MISC
Who found and reported it?
- WhiteSource Vulnerability Research Team (WVR) (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 22, 2021
- Published
- November 16, 2021, 09:45 UTC
- CVE record updated
- April 30, 2025, 15:44 UTC by Mend
- NVD
- Modified, last modified June 17, 2026, 03:42 UTC
- Last checked
- CVE list November 28, 2026, 20:15 UTC; NVD November 19, 2026, 07:53 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Factor?
- Nov 16, 2021CVE-2021-25984 FactorJS Factor: cross-site scripting (XSS)
- Nov 16, 2021CVE-2021-25983 FactorJS Factor: cross-site scripting (XSS)
- Nov 16, 2021CVE-2021-25982 FactorJS Factor: cross-site scripting (XSS)
Questions about CVE-2021-25985
Is CVE-2021-25985 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.78% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of FactorJS Factor are affected by CVE-2021-25985?
Factor from 1.0.4 before unspecified and Factor through 1.8.30, per the CVE record by Mend. The tables above give every range the sources list.
Which version fixes CVE-2021-25985?
unspecified, per the CVE record by Mend. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-25985?
High (7.8, CVSS 3.1, from Mend). The severity table above shows each score with its source.
Where is the official record of CVE-2021-25985?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.