{"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-25976 exists.","fix":"Upgrade Piranha to 10.0-alpha1 or later.","what":"CVE-2021-25976 is a high-severity vulnerability in PiranhaCMS Piranha, published on 16 Nov 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-25976 and fix it if it is affected.\n\nWhat it is: CVE-2021-25976 is a high-severity vulnerability in PiranhaCMS Piranha, published on 16 Nov 2021. An attacker can exploit it over the internet without logging in, 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-25976 exists.\n\nAffected packages and fixed versions:\n- Piranha (NuGet): affected from 4.0.0-alpha1; fixed in 10.0-alpha1\n- Piranha (NuGet): affected from 4.0.0-alpha1; fixed in 10.0-alpha1\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-25976/ (Markdown: https://insights.sbomify.com/CVE-2021-25976/index.md)","id":"CVE-2021-25976","markdown":"https://insights.sbomify.com/CVE-2021-25976/index.md","name":"CVE-2021-25976","record":{"aliases":["GHSA-ppq7-88c7-q879"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Piranha CMS","requires_auth":"none","summary":"Attackers can force authenticated users to perform unauthorized actions like deleting users or editing posts in Piranha CMS.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Mend","cpe":[{"product":"piranha_cms","vendor":"dotnetfoundation"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"In PiranhaCMS, versions 4.0.0-alpha1 to 9.2.0 are vulnerable to cross-site request forgery (CSRF) when performing various actions supported by the management system, such as deleting a user, deleting a role, editing a post, deleting a media folder etc., when an ID is known.","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 - Site-wide Cross-Site Request Forgery (CSRF)","id":"CVE-2021-25976","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"csrf","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"Piranha CMS - Stored XSS in Page Title","id":"CVE-2021-25977"},"packages":[{"ecosystem":"NuGet","fixed":["10.0-alpha1"],"introduced":["4.0.0-alpha1"],"last_affected":[],"package":"Piranha","purl":null,"source":"GHSA-ppq7-88c7-q879"},{"ecosystem":"NuGet","fixed":["10.0-alpha1"],"introduced":["4.0.0-alpha1"],"last_affected":[],"package":"Piranha","purl":"pkg:nuget/Piranha","source":"GHSA-ppq7-88c7-q879"}],"prev":{"headline":"Publify - Stored Cross-Site Scripting (XSS) due to Unrestricted File Upload","id":"CVE-2021-25975"},"products":["Piranha"],"published":"2021-11-16","related":[{"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":5.4,"headline":"Piranha CMS - Stored XSS in Page Title","id":"CVE-2021-25977","kev_date_added":null,"published":"2021-10-25"},{"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":"Attackers can force authenticated users to perform unauthorized actions like deleting users or editing posts in Piranha CMS.","url":"https://insights.sbomify.com/CVE-2021-25976/"}