{"id":"CVE-2021-25985","state":"PUBLISHED","title":"FactorJS - Insufficient Session Expiration Leads to a Local Account Takeover","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.","publishedAt":"2021-11-16T09:45:19.000Z","updatedAt":"2025-04-30T15:44:32.788Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"Mend"},"assigner":"Mend","products":["FactorJS Factor"],"affected":[{"vendor":"FactorJS","product":"Factor","versions":[{"version":"1.0.4","status":"affected","lessThan":"unspecified","versionType":"custom"},{"version":"unspecified","status":"affected","lessThanOrEqual":"1.8.30","versionType":"custom"}]}],"references":["https://github.com/FactorJS/factor/blob/v1.8.30/%40factor/user/util.ts#L65","https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985"],"weaknesses":["CWE-613"],"ingestedAt":"2026-10-29T19:48:10.461Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/25xxx/CVE-2021-25985.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-25985","state":"PUBLISHED","datePublished":"2021-11-16T09:45:19.000Z","dateUpdated":"2025-04-30T15:44:32.788Z","assignerShortName":"Mend","assignerOrgId":"478c68dd-22c1-4a41-97cd-654224dfacff","dateReserved":"2021-01-22T00:00:00.000Z"},"containers":{"cna":{"title":"FactorJS - Insufficient Session Expiration Leads to a Local Account Takeover","descriptions":[{"lang":"en","value":"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":[{"vendor":"FactorJS","product":"Factor","versions":[{"version":"1.0.4","status":"affected","lessThan":"unspecified","versionType":"custom"},{"version":"unspecified","status":"affected","lessThanOrEqual":"1.8.30","versionType":"custom"}]}],"references":[{"url":"https://github.com/FactorJS/factor/blob/v1.8.30/%40factor/user/util.ts#L65","tags":["x_refsource_MISC"]},{"url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-613","description":"CWE-613 Insufficient Session Expiration","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Mend","dateUpdated":"2021-11-16T09:45:19.000Z","orgId":"478c68dd-22c1-4a41-97cd-654224dfacff"},"credits":[{"lang":"en","value":"WhiteSource Vulnerability Research Team (WVR)"}],"solutions":[{"lang":"en","value":"Update to 3.0.1"}],"source":{"advisory":"https://www.whitesourcesoftware.com/vulnerability-database/","discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"vulnerabilitylab@whitesourcesoftware.com","ID":"CVE-2021-25985","STATE":"PUBLIC","TITLE":"FactorJS - Insufficient Session Expiration Leads to a Local Account Takeover"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Factor","version":{"version_data":[{"version_affected":">=","version_value":"1.0.4"},{"version_affected":"<=","version_value":"1.8.30"}]}}]},"vendor_name":"FactorJS"}]}},"credit":[{"lang":"eng","value":"WhiteSource Vulnerability Research Team (WVR)"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-613 Insufficient Session Expiration"}]}]},"references":{"reference_data":[{"name":"https://github.com/FactorJS/factor/blob/v1.8.30/@factor/user/util.ts#L65","refsource":"MISC","url":"https://github.com/FactorJS/factor/blob/v1.8.30/@factor/user/util.ts#L65"},{"name":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985","refsource":"MISC","url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985"}]},"solution":[{"lang":"en","value":"Update to 3.0.1"}],"source":{"advisory":"https://www.whitesourcesoftware.com/vulnerability-database/","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/FactorJS/factor/blob/v1.8.30/%40factor/user/util.ts#L65","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T20:19:19.407Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-30T15:29:22.999458Z","id":"CVE-2021-25985","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-30T15:44:32.788Z"}}]}}}