{"answers":{"affected":"4 open source packages ship an affected version, including org.xwiki.commons:xwiki-commons-xml. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-36471 exists.","fix":"Upgrade org.xwiki.commons:xwiki-commons-xml to a fixed version for your release line: 14.10.6 or 15.2-rc-1.","what":"CVE-2023-36471 is a critical cross-site scripting vulnerability in xwiki-commons, published on 29 Jun 2023. 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-2023-36471 and fix it if it is affected.\n\nWhat it is: CVE-2023-36471 is a critical cross-site scripting vulnerability in xwiki-commons, published on 29 Jun 2023. 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-2023-36471 exists.\n\nAffected packages and fixed versions:\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 14.6-rc-1; fixed in 14.10.6\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 14.6-rc-1; fixed in 14.10.6\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 15.0-rc-1; fixed in 15.2-rc-1\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 15.0-rc-1; fixed in 15.2-rc-1\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-2023-36471/ (Markdown: https://insights.sbomify.com/CVE-2023-36471/index.md)","id":"CVE-2023-36471","markdown":"https://insights.sbomify.com/CVE-2023-36471/index.md","name":"CVE-2023-36471","record":{"aliases":["GHSA-6pqf-c99p-758v"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"XWiki commons","requires_auth":"low_privilege","summary":"An HTML sanitizer flaw in XWiki commons allows attackers to inject form elements, potentially leading to remote code execution or phishing when an admin submits the crafted form.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"commons","vendor":"xwiki"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"Xwiki commons is the common modules used by other XWiki top level projects. The HTML sanitizer that is included in XWiki since version 14.6RC1 allowed form and input HTML tags. In the context of XWiki, this allows an attacker without script right to either create forms that can be used for phishing attacks or also in the context of a sheet, the attacker could add an input like `{{html}}\u003cinput type=\"hidden\" name=\"content\" value=\"{{groovy}}println(\u0026quot;Hello from Groovy!\u0026quot;)\" /\u003e{{/html}}` that would allow remote code execution when it is submitted by an admin (the sheet is rendered as part of the edit form). The attacker would need to ensure that the edit form looks plausible, though, which can be non-trivial as without script right the attacker cannot display the regular content of the document. This has been patched in XWiki 14.10.6 and 15.2RC1 by removing the central form-related tags from the list of allowed tags. Users are advised to upgrade. As a workaround an admin can manually disallow the tags by adding `form, input, select, textarea, button` to the configuration option `xml.htmlElementSanitizer.forbidTags` in the `xwiki.properties` configuration file.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-16","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-16T14:32:44Z","kind":"github_poc","ref":"https://github.com/shoucheng3/xwiki__xwiki-commons_CVE-2023-36471_14-10-5","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"HTML sanitizer allows form elements in restricted in org.xwiki.commons:xwiki-commons-xml","id":"CVE-2023-36471","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":4,"n_references":3,"next":{"headline":"Strapi may leak sensitive user information, user reset password, tokens via content-manager views","id":"CVE-2023-36472"},"packages":[{"ecosystem":"Maven","fixed":["14.10.6"],"introduced":["14.6-rc-1"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":null,"source":"GHSA-6pqf-c99p-758v"},{"ecosystem":"Maven","fixed":["14.10.6"],"introduced":["14.6-rc-1"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-xml","source":"GHSA-6pqf-c99p-758v"},{"ecosystem":"Maven","fixed":["15.2-rc-1"],"introduced":["15.0-rc-1"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":null,"source":"GHSA-6pqf-c99p-758v"},{"ecosystem":"Maven","fixed":["15.2-rc-1"],"introduced":["15.0-rc-1"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-xml","source":"GHSA-6pqf-c99p-758v"}],"prev":{"headline":"Code injection in icon themes of XWiki Platform","id":"CVE-2023-36470"},"products":["xwiki-commons"],"published":"2023-06-29","related":[{"cvss_score":10,"headline":"XWiki Commons may allow privilege escalation to programming rights via user's first name","id":"CVE-2023-26055","kev_date_added":null,"published":"2023-03-02"},{"cvss_score":9.1,"headline":"Cross-site Scripting in org.xwiki.commons:xwiki-commons-xml","id":"CVE-2023-29528","kev_date_added":null,"published":"2023-04-20"},{"cvss_score":4.9,"headline":"Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml","id":"CVE-2022-24898","kev_date_added":null,"published":"2022-04-28"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-26","vendors":["xwiki"]},"summary":"An HTML sanitizer flaw in XWiki commons allows attackers to inject form elements, potentially leading to remote code execution or phishing when an admin submits the crafted form.","url":"https://insights.sbomify.com/CVE-2023-36471/"}