{"answers":{"affected":"3 open source packages ship an affected version, including wiki. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25986 exists.","fix":"Upgrade wiki to 0.7.9 or later.","what":"CVE-2021-25986 is a medium-severity cross-site scripting vulnerability in Django-wiki, published on 23 Nov 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-25986 and fix it if it is affected.\n\nWhat it is: CVE-2021-25986 is a medium-severity cross-site scripting vulnerability in Django-wiki, published on 23 Nov 2021. Any signed-in user can exploit it over the 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-25986 exists.\n\nAffected packages and fixed versions:\n- wiki (PyPI): affected from 0.0.20; fixed in 0.7.9\n- wiki (PyPI): affected from 0.0.20; fixed in 0.7.9\n- wiki (PyPI): affected from 0.0.20; fixed in 0.7.9\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-25986/ (Markdown: https://insights.sbomify.com/CVE-2021-25986/index.md)","id":"CVE-2021-25986","markdown":"https://insights.sbomify.com/CVE-2021-25986/index.md","name":"CVE-2021-25986","record":{"aliases":["GHSA-3m3h-v9hv-9j4h","PYSEC-2021-850"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Django wiki plugin","requires_auth":"low_privilege","summary":"An attacker with edit access can inject JavaScript into page titles, leading to stored XSS execution in the victim's notification panel.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Mend","cpe":[{"product":"django-wiki","vendor":"django-wiki_project"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"In Django-wiki, versions 0.0.20 to 0.7.8 are vulnerable to Stored Cross-Site Scripting (XSS) in Notifications Section. An attacker who has access to edit pages can inject JavaScript payload in the title field. When a victim gets a notification regarding the changes made in the application, the payload in the notification panel renders and loads external JavaScript.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Django-wiki - Stored Cross-Site Scripting (XSS) in Notifications Section","id":"CVE-2021-25986","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2021"},"n_packages":3,"n_references":2,"next":{"headline":"Hexo - Stored XSS","id":"CVE-2021-25987"},"packages":[{"ecosystem":"PyPI","fixed":["0.7.9"],"introduced":["0.0.20"],"last_affected":[],"package":"wiki","purl":null,"source":"GHSA-3m3h-v9hv-9j4h"},{"ecosystem":"PyPI","fixed":["0.7.9"],"introduced":["0.0.20"],"last_affected":[],"package":"wiki","purl":"pkg:pypi/wiki","source":"GHSA-3m3h-v9hv-9j4h"},{"ecosystem":"PyPI","fixed":["0.7.9"],"introduced":["0.0.20"],"last_affected":[],"package":"wiki","purl":"pkg:pypi/wiki","source":"PYSEC-2021-850"}],"prev":{"headline":"FactorJS - Insufficient Session Expiration Leads to a Local Account Takeover","id":"CVE-2021-25985"},"products":["Django-wiki"],"published":"2021-11-23","related":[{"cvss_score":7.5,"headline":"django-wiki denial of service via regular expression","id":"CVE-2024-28865","kev_date_added":null,"published":"2024-03-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"partial"},"state":"PUBLISHED","updated":"2025-04-30","vendors":["Django-wiki"]},"summary":"An attacker with edit access can inject JavaScript into page titles, leading to stored XSS execution in the victim's notification panel.","url":"https://insights.sbomify.com/CVE-2021-25986/"}