{"answers":{"affected":"2 open source packages ship an affected version, including Piranha. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25977 exists.","fix":"Upgrade Piranha to 9.2.0 or later.","what":"CVE-2021-25977 is a medium-severity cross-site scripting vulnerability in PiranhaCMS Piranha, published on 25 Oct 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-25977 and fix it if it is affected.\n\nWhat it is: CVE-2021-25977 is a medium-severity cross-site scripting vulnerability in PiranhaCMS Piranha, published on 25 Oct 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-25977 exists.\n\nAffected packages and fixed versions:\n- Piranha (NuGet): affected from 7.0.0; fixed in 9.2.0\n- Piranha (NuGet): affected from 7.0.0; fixed in 9.2.0\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-25977/ (Markdown: https://insights.sbomify.com/CVE-2021-25977/index.md)","id":"CVE-2021-25977","markdown":"https://insights.sbomify.com/CVE-2021-25977/index.md","name":"CVE-2021-25977","record":{"aliases":["GHSA-jvjp-vh27-r9h5"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Piranha CMS","requires_auth":"low_privilege","summary":"A low-privileged user can execute arbitrary JavaScript via stored XSS in the page title field of Piranha CMS.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Mend","cpe":[{"product":"piranha_cms","vendor":"dotnetfoundation"}],"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 PiranhaCMS, versions 7.0.0 to 9.1.1 are vulnerable to stored XSS due to the page title improperly sanitized. By creating a page with a specially crafted page title, a low privileged user can trigger arbitrary JavaScript execution.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Piranha CMS - Stored XSS in Page Title","id":"CVE-2021-25977","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"xss","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"Apostrophe - XSS","id":"CVE-2021-25978"},"packages":[{"ecosystem":"NuGet","fixed":["9.2.0"],"introduced":["7.0.0"],"last_affected":[],"package":"Piranha","purl":null,"source":"GHSA-jvjp-vh27-r9h5"},{"ecosystem":"NuGet","fixed":["9.2.0"],"introduced":["7.0.0"],"last_affected":[],"package":"Piranha","purl":"pkg:nuget/Piranha","source":"GHSA-jvjp-vh27-r9h5"}],"prev":{"headline":"Piranha CMS - Site-wide Cross-Site Request Forgery (CSRF)","id":"CVE-2021-25976"},"products":["Piranha"],"published":"2021-10-25","related":[{"cvss_score":8.1,"headline":"Piranha CMS - Site-wide Cross-Site Request Forgery (CSRF)","id":"CVE-2021-25976","kev_date_added":null,"published":"2021-11-16"},{"cvss_score":6.8,"headline":"PiranhaCMS stored XSS","id":"CVE-2025-57692","kev_date_added":null,"published":"2025-09-26"},{"cvss_score":6.1,"headline":"Piranha has stored cross-site scripting (XSS) vulnerability","id":"CVE-2025-67290","kev_date_added":null,"published":"2025-12-22"},{"cvss_score":6.1,"headline":"Piranha has stored cross-site scripting (XSS) vulnerability","id":"CVE-2025-67291","kev_date_added":null,"published":"2025-12-22"},{"cvss_score":6.1,"headline":"Piranha CMS vulnerable to stored cross-site scripting (XSS)","id":"CVE-2025-61413","kev_date_added":null,"published":"2025-10-23"},{"cvss_score":4.7,"headline":"Piranha CMS Cross-site Scripting vulnerability","id":"CVE-2024-55341","kev_date_added":null,"published":"2024-12-20"}],"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":"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":["PiranhaCMS"]},"summary":"A low-privileged user can execute arbitrary JavaScript via stored XSS in the page title field of Piranha CMS.","url":"https://insights.sbomify.com/CVE-2021-25977/"}