MODERATE 4.1

CVE-2021-43841

Cross-site Scripting by SVG upload in xwiki-platform

Description

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 Maven artifacts (2)

ArtifactAffected versionsFixed in
org.xwiki.platform » xwiki-platform-oldcore
< 12.10.6>= 13.0, < 13.3RC1
12.10.6, 13.3RC1
org.xwiki.platform » xwiki-platform-tool-configuration-resources
< 12.10.6>= 13.0, < 13.3RC1
12.10.6, 13.3RC1

Blast radius

2affected artifacts
688affected versions
872dependent artifacts (est.)
59,994dependent versions

57% of the dependent artifacts (504) still pull an affected version in their latest release.

DepthDependent versions
Direct
24,341
2 hops
23,455
3 hops
10,207
4 hops
1,873
5 hops
116
6 hops
2

Most used dependents

Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.