Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-25978

Apostrophe CMS versions between 2.63.0 to 3.3.1 are vulnerable to Stored XSS where an editor uploads an SVG file that contains malicious JavaScript onto the Images module, which triggers XSS once viewed.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-25978
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:41 UTC · Revision 1

Source evidence

CVE-2021-25978

core-osv · Original source

Published 7 Nov 2021, 18:15 UTC

Apostrophe CMS versions between 2.63.0 to 3.3.1 are vulnerable to Stored XSS where an editor uploads an SVG file that contains malicious JavaScript onto the Images module, which triggers XSS once viewed.

osv:CVE-2021-25978
Complete source record
{
  "id": "e0ff37426c49d9a56bb99c12bd3cfb590c93a06ab6f38822988b498930ce41d0",
  "url": "https://osv.dev/vulnerability/CVE-2021-25978",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-25978",
    "summary": "Apostrophe CMS versions between 2.63.0 to 3.3.1 are vulnerable to Stored XSS where an editor uploads an SVG file that contains malicious JavaScript onto the Images module, which triggers XSS once viewed.",
    "evidence": "osv:CVE-2021-25978",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-25978",
      "aliases": [
        "CVE-2021-25978",
        "GHSA-4r9c-jghc-cx5m"
      ],
      "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/apostrophecms/apostrophe",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0ae930a861a077f52c7995d4425b3fecee3775d2"
                },
                {
                  "last_affected": "71221f7463372c0e2c7c7638d9fc6f6b85d38239"
                },
                {
                  "fixed": "c8b94ee9c79468f1ce28e31966cb0e0839165e59"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apostrophecms:apostrophecms:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.63.0"
                      },
                      {
                        "last_affected": "3.3.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c8b94ee9c79468f1ce28e31966cb0e0839165e59"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.3.1",
            "3.3.0",
            "3.2.0",
            "3.1.2",
            "3.1.0",
            "3.0.1",
            "3.0.0",
            "3.0.0-beta.3",
            "3.0.0-beta.2",
            "3.0.0-beta.1.1",
            "3.0.0-beta.1",
            "3.0.0-alpha.7",
            "3.0.0-alpha.6.1",
            "3.0.0-alpha.5",
            "3.0.0-alpha.4.2",
            "3.0.0-alpha.4",
            "3.0.0-alpha.3",
            "3.0.0-alpha.2",
            "3.0.0-alpha.1",
            "2.67.0",
            "2.66.0",
            "2.65.0",
            "2.64.1",
            "2.64.0",
            "2.63.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-25978.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:34.168061370Z",
      "provider": "osv",
      "references": [
        "https://github.com/apostrophecms/apostrophe/commit/c8b94ee9c79468f1ce28e31966cb0e0839165e59"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-25978",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385604,
  "published_at": "2021-11-07T18:15:07.62+00:00"
}