Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-43841

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-43841
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:25 UTC · Revision 1

Source evidence

CVE-2021-43841

core-osv · Original source

Published 4 Feb 2022, 23:15 UTC

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.

osv:CVE-2021-43841
Complete source record
{
  "id": "b36c5d6e79715c5db37992ca904cd6031e91c3d0fc5eb7739b95450788255ef4",
  "url": "https://osv.dev/vulnerability/CVE-2021-43841",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-43841",
    "summary": "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.",
    "evidence": "osv:CVE-2021-43841",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-43841",
      "aliases": [
        "CVE-2021-43841",
        "GHSA-9jq9-c2cv-pcrj"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-commons",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "7d22ebacea68a11b90a812ab4d9cba53872fad3a"
                },
                {
                  "introduced": "271203deeb757a7c21e3c0623b79e7b3050c2a05"
                },
                {
                  "last_affected": "b528444b77b6db0a80431476f082e16b667e1aae"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0"
                      },
                      {
                        "fixed": "12.10.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "13.0"
                      },
                      {
                        "last_affected": "13.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "xwiki-commons-13.2",
            "xwiki-commons-13.2-rc-1",
            "xwiki-commons-12.10.5",
            "xwiki-commons-12.10.4",
            "xwiki-commons-12.10.3",
            "xwiki-commons-12.10.2",
            "xwiki-commons-12.10.1",
            "xwiki-commons-12.10",
            "xwiki-commons-8.3-milestone-2",
            "xwiki-commons-8.3-milestone-1",
            "xwiki-commons-8.2-milestone-2",
            "xwiki-commons-8.2-milestone-1",
            "xwiki-commons-8.1-milestone-2",
            "xwiki-commons-8.1-milestone-1",
            "xwiki-commons-8.0-milestone-2",
            "xwiki-commons-8.0-milestone-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43841.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-platform",
              "type": "GIT",
              "events": [
                {
                  "introduced": "93d8322eda7b68fd66f33334b982b047d7cf4f36"
                },
                {
                  "fixed": "c8ef54e5edad98883ec37bea18edb78c39215348"
                },
                {
                  "introduced": "909c4bf9b308cf9cab52bfed54adccd04bad5803"
                },
                {
                  "last_affected": "c2887a44acf11af143aab3dc3c9fd748a2e1b71a"
                },
                {
                  "fixed": "5853d492b3a274db0d94d560e2a5ea988a271c62"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0"
                      },
                      {
                        "fixed": "12.10.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "13.0"
                      },
                      {
                        "last_affected": "13.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "5853d492b3a274db0d94d560e2a5ea988a271c62"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43841.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-43841-2efdcd37",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "52239795527010175460387824091821270150",
                    "84396151570646396838521886867665720684",
                    "129625191968863937036938174958749668499",
                    "5364273610920071470595488311633386171"
                  ]
                },
                "source": "https://github.com/xwiki/xwiki-platform/commit/5853d492b3a274db0d94d560e2a5ea988a271c62",
                "target": {
                  "file": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/DownloadAction.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:21:21Z"
          }
        }
      ],
      "modified": "2026-10-24T14:21:21.181925058Z",
      "provider": "osv",
      "references": [
        "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9jq9-c2cv-pcrj",
        "https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments#HAttachmentdisplayordownload",
        "https://github.com/xwiki/xwiki-platform/commit/5853d492b3a274db0d94d560e2a5ea988a271c62",
        "https://jira.xwiki.org/browse/XWIKI-18368"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-43841",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443642,
  "published_at": "2022-02-04T23:15:11.957+00:00"
}