{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25985 exists.","fix":"No fix has been published for CVE-2021-25985 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-25985 is a high-severity authentication bypass vulnerability in FactorJS Factor, published on 16 Nov 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-25985 and fix it if it is affected.\n\nWhat it is: CVE-2021-25985 is a high-severity authentication bypass vulnerability in FactorJS Factor, published on 16 Nov 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25985 exists.\n\nAffected product: FactorJS Factor. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-25985/ (Markdown: https://insights.sbomify.com/CVE-2021-25985/index.md)","id":"CVE-2021-25985","markdown":"https://insights.sbomify.com/CVE-2021-25985/index.md","name":"CVE-2021-25985","record":{"aliases":["GHSA-j232-863r-9977"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"FactorJS headless CMS","requires_auth":"none","summary":"Attackers can hijack user accounts by reusing stolen session tokens from local storage due to insufficient session expiration in FactorJS.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Mend","cpe":[{"product":"factor","vendor":"darwin"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration"}],"description":"In Factor (App Framework \u0026 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"FactorJS - Insufficient Session Expiration Leads to a Local Account Takeover","id":"CVE-2021-25985","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"auth_bypass","year":"2021"},"n_packages":0,"n_references":2,"next":{"headline":"Django-wiki - Stored Cross-Site Scripting (XSS) in Notifications Section","id":"CVE-2021-25986"},"packages":[],"prev":{"headline":"FactorJS - Stored Cross-Site Scripting (XSS) in Post Reply Functionality","id":"CVE-2021-25984"},"products":["Factor"],"published":"2021-11-16","related":[{"cvss_score":6.1,"headline":"FactorJS - Reflected Cross-Site Scripting (XSS) in Search Functionality","id":"CVE-2021-25982","kev_date_added":null,"published":"2021-11-16"},{"cvss_score":6.1,"headline":"FactorJS - Reflected Cross-Site Scripting (XSS) in Tags and Categories Functionality","id":"CVE-2021-25983","kev_date_added":null,"published":"2021-11-16"},{"cvss_score":6.1,"headline":"FactorJS - Stored Cross-Site Scripting (XSS) in Post Reply Functionality","id":"CVE-2021-25984","kev_date_added":null,"published":"2021-11-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-30","vendors":["FactorJS"]},"summary":"Attackers can hijack user accounts by reusing stolen session tokens from local storage due to insufficient session expiration in FactorJS.","url":"https://insights.sbomify.com/CVE-2021-25985/"}