Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-25977

In PiranhaCMS, versions 7.0.0 to 9.1.1 are vulnerable to stored XSS due to the page title improperly sanitized. By creating a page with a specially crafted page title, a low privileged user can trigger arbitrary JavaScript execution.

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

Source evidence

CVE-2021-25977

core-osv · Original source

Published 25 Oct 2021, 13:15 UTC

In PiranhaCMS, versions 7.0.0 to 9.1.1 are vulnerable to stored XSS due to the page title improperly sanitized. By creating a page with a specially crafted page title, a low privileged user can trigger arbitrary JavaScript execution.

osv:CVE-2021-25977
Complete source record
{
  "id": "f5e5790c1c5858cdc807efce2dafea69f4d738647923a88a8c18ca1a9464e240",
  "url": "https://osv.dev/vulnerability/CVE-2021-25977",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-25977",
    "summary": "In PiranhaCMS, versions 7.0.0 to 9.1.1 are vulnerable to stored XSS due to the page title improperly sanitized. By creating a page with a specially crafted page title, a low privileged user can trigger arbitrary JavaScript execution.",
    "evidence": "osv:CVE-2021-25977",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-25977",
      "aliases": [
        "CVE-2021-25977",
        "GHSA-jvjp-vh27-r9h5"
      ],
      "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/piranhacms/piranha.core",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f0fc4d06ff4f1242d9d6a894ad04e89d6deef9af"
                },
                {
                  "last_affected": "412ce5e9b5fe463bf85ed0a8d5799e75b864a38d"
                },
                {
                  "fixed": "543bc53c7dbd28c793ec960b57fb0e716c6b18d7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:dotnetfoundation:piranha_cms:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "last_affected": "9.1.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "543bc53c7dbd28c793ec960b57fb0e716c6b18d7"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v9.1-sr1",
            "v9.1",
            "v9.1-beta1",
            "v9.1-alpha2",
            "v9.1-alpha1",
            "v9.0-sr1",
            "v9.0",
            "v9.0-rc2",
            "v9.0-rc1",
            "v9.0-beta1",
            "v8.4-sr3",
            "v8.4-sr2",
            "v8.4-sr1",
            "v8.4",
            "v8.3-sr2",
            "v8.3-sr1",
            "v8.3",
            "v8.2",
            "v8.1",
            "v8.0-sr1",
            "v8.0",
            "v7.1.0",
            "v7.0-sr5",
            "v7.0-sr4",
            "v7.0-sr3",
            "v7.0-sr2",
            "v7.0.1",
            "v7.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-25977.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:34.249190558Z",
      "provider": "osv",
      "references": [
        "https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25977",
        "https://github.com/PiranhaCMS/piranha.core/commit/543bc53c7dbd28c793ec960b57fb0e716c6b18d7"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-25977",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385614,
  "published_at": "2021-10-25T13:15:07.8+00:00"
}