Medium

Cross-site Scripting by SVG upload in xwiki-platform

  • Disclosed: 10.02.2022
  • Updated: 11.10.2026 12:22

Impact

When using default XWiki configuration, it's possible for an attacker to upload an SVG containing a script executed when executing the download action on the file.

Patches

This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser.

Workarounds

This issue can be fixed without the patch by setting properly the configuration to download or display files, see: https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments#HAttachmentdisplayordownload

References

https://jira.xwiki.org/browse/XWIKI-18368

For more information

If you have any questions or comments about this advisory:

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.xwiki.platform:xwiki-platform-oldcore < 12.10.6, >= 13.0, < 13.3RC1 12.10.6, 13.3RC1
Java / Kotlin (Maven) org.xwiki.platform:xwiki-platform-tool-configuration-resources >= 13.0, < 13.3RC1, < 12.10.6 13.3RC1, 12.10.6

References

CVSS score 4.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
Weakness (CWE)
CWE-79
Platform
Java / Kotlin (Maven)
Package
org.xwiki.platform:xwiki-platform-oldcore, org.xwiki.platform:xwiki-platform-tool-configuration-resources
Disclosed
10.02.2022
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-9jq9-c2cv-pcrj - CC BY 4.0

Vulnerability history: org.xwiki.platform:xwiki-platform-tool-configuration-resources

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.