{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "0.17.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "d2485910010b1671a6e4341ab36cd199b7868e8d"
            }
          ],
          "repo": "https://github.com/writefreely/writefreely",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142285.json"
  },
  "details": "WriteFreely through 0.17.3 contains a stored cross-site scripting vulnerability that allows authenticated authors to execute scripts by publishing XHTML-namespaced post bodies served unescaped as application/xml. Attackers can send the .xml post link handled by handleViewPost or viewCollectionPost to administrators, running script in their session to read or change posts and settings.",
  "id": "CVE-2026-142285",
  "modified": "2026-12-02T21:45:45.293216956Z",
  "published": "2026-12-02T16:49:11.014Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142285.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/writefreely/writefreely"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L1626-L1643"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L326-L336"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L481-L501"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142285"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/writefreely-through-0.17.3-stored-xss-via-xml-post-raw-view"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "WriteFreely through 0.17.3 Stored XSS via XML Post Raw View"
}