# CVE-2026-142285: WriteFreely through 0.17.3 Stored XSS via XML Post Raw View

Source: https://aplosec.si/cve/CVE-2026-142285/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142285

Medium 5.1 · Reported · No fix listed · CWE-79 · Go

# WriteFreely through 0.17.3 Stored XSS via XML Post Raw View

CVE-2026-142285 · published 2026-12-02

In plain words: this type of bug lets someone run scripts in another person's browser (cross-site scripting, XSS). No fixed release is listed yet.

## Summary

CVE-2026-142285 affects WriteFreely (Go) <= 0.17.3: Stored XSS via XML Post Raw View (CWE-79). No fixed release is listed. CVSS 4.0 base score 5.1 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/writefreely-through-0.17.3-stored-xss-via-xml-post-raw-view](https://www.vulncheck.com/advisories/writefreely-through-0.17.3-stored-xss-via-xml-post-raw-view)

- [Vulnerable codehttps://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L326-L336](https://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L326-L336)

- [Vulnerable codehttps://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L481-L501](https://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L481-L501)

- [Vulnerable codehttps://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L1626-L1643](https://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L1626-L1643)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142285](https://www.cve.org/CVERecord?id=CVE-2026-142285)

**Severity:** Medium 5.1 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142285)

**Package:** WriteFreely

**Ecosystem:** Go

**Affected:** <= 0.17.3

**Fixed:** None

**Weakness:** CWE-79

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
