{"answers":{"affected":"2 open source packages ship an affected version, including org.xwiki.commons:xwiki-commons-xml. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-29528 in the wild and no public exploit code.","fix":"Upgrade org.xwiki.commons:xwiki-commons-xml to 14.10 or later.","what":"CVE-2023-29528 is a critical cross-site scripting vulnerability in xwiki-commons, published on 20 Apr 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-29528 and fix it if it is affected.\n\nWhat it is: CVE-2023-29528 is a critical cross-site scripting vulnerability in xwiki-commons, published on 20 Apr 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-29528 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 4.2-milestone-1; fixed in 14.10\n- org.xwiki.commons:xwiki-commons-xml (Maven): affected from 4.2-milestone-1; fixed in 14.10\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-29528/ (Markdown: https://insights.sbomify.com/CVE-2023-29528/index.md)","id":"CVE-2023-29528","markdown":"https://insights.sbomify.com/CVE-2023-29528/index.md","name":"CVE-2023-29528","record":{"aliases":["GHSA-x37v-36wv-6v6h"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"XWiki Commons library","requires_auth":"low_privilege","summary":"Attackers can inject malicious JavaScript via invalid HTML comments in restricted mode, leading to server-side code execution when privileged users view the content.","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"}],"description":"XWiki Commons are technical libraries common to several other top level XWiki projects. The \"restricted\" mode of the HTML cleaner in XWiki, introduced in version 4.2-milestone-1 and massively improved in version 14.6-rc-1, allowed the injection of arbitrary HTML code and thus cross-site scripting via invalid HTML comments. As a consequence, any code relying on this \"restricted\" mode for security is vulnerable to JavaScript injection (\"cross-site scripting\"/XSS). When a privileged user with programming rights visits such a comment in XWiki, the malicious JavaScript code is executed in the context of the user session. This allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. This problem has been patched in XWiki 14.10, HTML comments are now removed in restricted mode and a check has been introduced that ensures that comments don't start with `\u003e`. There are no known workarounds apart from upgrading to a version including the fix.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-20T15:30:01Z","kind":"github_poc","ref":"https://github.com/shoucheng3/xwiki__xwiki-commons_CVE-2023-29528_14-9-rc-1","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Cross-site Scripting in org.xwiki.commons:xwiki-commons-xml","id":"CVE-2023-29528","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":2,"n_references":4,"next":{"headline":"matrix-js-sdk vulnerable to invisible eavesdropping in group calls","id":"CVE-2023-29529"},"packages":[{"ecosystem":"Maven","fixed":["14.10"],"introduced":["4.2-milestone-1"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":null,"source":"GHSA-x37v-36wv-6v6h"},{"ecosystem":"Maven","fixed":["14.10"],"introduced":["4.2-milestone-1"],"last_affected":[],"package":"org.xwiki.commons:xwiki-commons-xml","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-xml","source":"GHSA-x37v-36wv-6v6h"}],"prev":{"headline":"Code injection from account through AWM view sheet in xwiki platform","id":"CVE-2023-29527"},"products":["xwiki-commons"],"published":"2023-04-20","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":"HTML sanitizer allows form elements in restricted in org.xwiki.commons:xwiki-commons-xml","id":"CVE-2023-36471","kev_date_added":null,"published":"2023-06-29"},{"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-04","vendors":["xwiki"]},"summary":"Attackers can inject malicious JavaScript via invalid HTML comments in restricted mode, leading to server-side code execution when privileged users view the content.","url":"https://insights.sbomify.com/CVE-2023-29528/"}