Every CVE Search/ Get API key

CVE-2021-43841

XSS by SVG upload in xwiki-platform

5.4 MediumFix available

XWiki is a generic wiki platform offering runtime services for applications built on top of it. 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. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
None

Exploit likelihood

0.87%Down 0.1 points since Feb 8, 2022
90%50%10%1%

What each source reports

CVE List Score used 5.4

XSS by SVG upload in xwiki-platform

XWiki is a generic wiki platform offering runtime services for applications built on top of it. 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. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.

Record
CVE-2021-43841
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
EUVDEUVD-2022-0941 5.4

XWiki is a generic wiki platform offering runtime services for applications built on top of it. 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. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.

Record
EUVD-2022-0941
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-9jq9-c2cv-pcrj 4.1

Cross-site Scripting by SVG upload in xwiki-platform

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:

Record
GHSA-9jq9-c2cv-pcrj
CVSS 3.1
4.1 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
Weakness
CWE-79
Updated
2026-11-02
NVD 5.4

XWiki is a generic wiki platform offering runtime services for applications built on top of it. 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. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.

Record
CVE-2021-43841
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS 2.0
3.5 LowAV:N/AC:M/Au:S/C:N/I:P/A:N
Weakness
CWE-79
Updated
2026-11-02
OSV 5.4

XWiki is a generic wiki platform offering runtime services for applications built on top of it. 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. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.

Record
CVE-2021-43841
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVGHSA-9jq9-c2cv-pcrj 4.1

Cross-site Scripting by SVG upload in xwiki-platform

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:

Record
GHSA-9jq9-c2cv-pcrj
CVSS 3.1
4.1 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
Weakness
CWE-79
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.xwiki.platform:xwiki-platform-oldcore
Maven
before 12.10.6
12.10.6
org.xwiki.platform:xwiki-platform-oldcore
Maven
13.0 to 13.2
13.3RC1
org.xwiki.platform:xwiki-platform-tool-configuration-resources
Maven
13.0 to 13.2
13.3RC1
org.xwiki.platform:xwiki-platform-tool-configuration-resources
Maven
before 12.10.6
12.10.6
org.xwiki.platform:xwiki-platform-oldcore
Maven
13.0 up to 13.3RC1
13.3RC1
org.xwiki.platform:xwiki-platform-tool-configuration-resources
Maven
13.0 up to 13.3RC1
13.3RC1

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-43841 is a medium vulnerability (CVSS 5.4) in Xwiki, published February 4, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.87%, the 59th percentile. Fixed in org.xwiki.platform:xwiki-platform-oldcore 12.10.6.

References

MoveEnter Open