{"answers":{"affected":"2 open source packages ship an affected version, including org.xwiki.rendering:xwiki-rendering-xml. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37908 exists.","fix":"Upgrade org.xwiki.rendering:xwiki-rendering-xml to 14.10.4 or later.","what":"CVE-2023-37908 is a critical cross-site scripting vulnerability in xwiki-rendering, published on 25 Oct 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-37908 and fix it if it is affected.\n\nWhat it is: CVE-2023-37908 is a critical cross-site scripting vulnerability in xwiki-rendering, published on 25 Oct 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-37908 exists.\n\nAffected packages and fixed versions:\n- org.xwiki.rendering:xwiki-rendering-xml (Maven): affected from 14.6-rc-1; fixed in 14.10.4\n- org.xwiki.rendering:xwiki-rendering-xml (Maven): affected from 14.6-rc-1; fixed in 14.10.4\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-37908/ (Markdown: https://insights.sbomify.com/CVE-2023-37908/index.md)","id":"CVE-2023-37908","markdown":"https://insights.sbomify.com/CVE-2023-37908/index.md","name":"CVE-2023-37908","record":{"aliases":["GHSA-663w-2xp3-5739"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"XWiki rendering library","requires_auth":"low_privilege","summary":"Attackers can inject malicious JavaScript via invalid attribute names in XWiki rendering, leading to session hijacking or server-side code execution for privileged users.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"xwiki-rendering","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-83","name":"Improper Neutralization of Script in Attributes in a Web Page"}],"description":"XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. The cleaning of attributes during XHTML rendering, introduced in version 14.6-rc-1, allowed the injection of arbitrary HTML code and thus cross-site scripting via invalid attribute names. This can be exploited, e.g., via the link syntax in any content that supports XWiki syntax like comments in XWiki. When a user moves the mouse over a malicious link, the malicious JavaScript code is executed in the context of the user session. When this user is a privileged user who has programming rights, this allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. While this attribute was correctly recognized as not allowed, the attribute was still printed with a prefix `data-xwiki-translated-attribute-` without further cleaning or validation. This problem has been patched in XWiki 14.10.4 and 15.0 RC1 by removing characters not allowed in data attributes and then validating the cleaned attribute again. There are no known workarounds apart from upgrading to a version including the fix.","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:34:03Z","kind":"github_poc","ref":"https://github.com/shoucheng3/xwiki__xwiki-rendering_CVE-2023-37908_14-10-3","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"org.xwiki.rendering:xwiki-rendering-xml Improper Neutralization of Invalid Characters in Identifiers in Web Pages vulnerability","id":"CVE-2023-37908","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":2,"n_references":4,"next":{"headline":"Privilege escalation (PR)/remote code execution from account through Menu.UIExtensionSheet","id":"CVE-2023-37909"},"packages":[{"ecosystem":"Maven","fixed":["14.10.4"],"introduced":["14.6-rc-1"],"last_affected":[],"package":"org.xwiki.rendering:xwiki-rendering-xml","purl":null,"source":"GHSA-663w-2xp3-5739"},{"ecosystem":"Maven","fixed":["14.10.4"],"introduced":["14.6-rc-1"],"last_affected":[],"package":"org.xwiki.rendering:xwiki-rendering-xml","purl":"pkg:maven/org.xwiki.rendering/xwiki-rendering-xml","source":"GHSA-663w-2xp3-5739"}],"prev":{"headline":"Cryptomator's MSI installer allows local privilege escalation","id":"CVE-2023-37907"},"products":["xwiki-rendering"],"published":"2023-10-25","related":[{"cvss_score":10,"headline":"XWiki Rendering's footnote macro vulnerable to privilege escalation via the footnote macro","id":"CVE-2023-37912","kev_date_added":null,"published":"2023-10-25"},{"cvss_score":8.7,"headline":"XWiki vulnerable to remote code execution through insufficient protection against {{/html}} injection","id":"CVE-2025-66474","kev_date_added":null,"published":"2025-12-10"}],"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-09-17","vendors":["xwiki"]},"summary":"Attackers can inject malicious JavaScript via invalid attribute names in XWiki rendering, leading to session hijacking or server-side code execution for privileged users.","url":"https://insights.sbomify.com/CVE-2023-37908/"}