{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "17.3.3"
              },
              {
                "introduced": "17.4.0"
              },
              {
                "fixed": "17.4.1"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5ee515c5c80c3aaf1e7527f63e4e69798aef1b29"
            },
            {
              "introduced": "57fb3abf08b0075149e7abe7dbf5de99e07aee06"
            },
            {
              "fixed": "8203fc2286fd48d7d72f52b3c4a2487f96fcea28"
            }
          ],
          "repo": "https://github.com/opf/openproject",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-q33w-f822-hg8x"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52781.json"
  },
  "details": "OpenProject is open-source, web-based project management software. Prior to 17.3.3 and 17.4.1, the HTML sanitizer grants \u003cmacro\u003e elements unrestricted data-* attributes via :data wildcard. An attacker injects data-controller=\"poll-for-changes\" into a work package description, causing Stimulus.js to mount a controller that fetches an attacker-uploaded attachment and passes it to renderStreamMessage(). This executes arbitrary Turbo Stream actions — including redirect_to — in every victim's authenticated browser session, redirecting them to an attacker-controlled server. This vulnerability is fixed in 17.3.3 and 17.4.1.",
  "id": "CVE-2026-52781",
  "modified": "2026-07-15T01:49:07.759704071Z",
  "published": "2026-06-26T19:00:10.717Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52781.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/opf/openproject/security/advisories/GHSA-q33w-f822-hg8x"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-52781"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "OpenProject: Stored XSS on openproject.example.com through /api/v3/projects/{project}/work_packages via POST parameter \"description\""
}