# CVE-2026-59728: @astrojs/rss: XML Injection via Unescaped RSS Feed Fields

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-20T23:21:47.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-8j5q-mfj2-5q9q
- Weaknesses: CWE-91
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Astro is a web framework for content-driven websites. In versions 1.0.0 through 4.0.18, the source.title and enclosure.type item fields in packages/astro-rss/src/index.ts are interpolated directly into XML template strings without XML-character escaping before being parsed by fast-xml-parser. Both fields are validated only as z.string(), placing no restriction on XML special characters. An attacker who controls these values can inject arbitrary XML into the generated RSS feed: a value containing " can break out of an attribute (as with enclosure.type), and a value containing </source> can close an element early and inject additional nodes (as with source.title). This corrupts feed structure, injects false metadata (for example, a fake <link> pointing to a malicious URL), and can cause feed readers to misparse or display attacker-controlled content. In SSR mode (output: 'server'), the poisoned feed is served on every request to all subscribers. This issue has been fixed in version 4.0.19.

(As written by CVE List.)

## Affected

- withastro astro: >= 1.0.0, < 4.0.19
- @astrojs/rss (npm): from 1.0.0 before 4.0.19

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-8j5q-mfj2-5q9q> (exploit, web)
- <https://github.com/withastro/astro/pull/17209> (web)
- <https://github.com/withastro/astro/commit/fbcfa039dfe3d700b239f595a6c55ee35e45bd06> (web)
- <https://github.com/withastro/astro/releases/tag/@astrojs/rss@4.0.19> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59728> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2026-59728](https://www.cve.org/CVERecord?id=CVE-2026-59728), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-8j5q-mfj2-5q9q](https://github.com/advisories/GHSA-8j5q-mfj2-5q9q), CC-BY-4.0, modified 2026-08-12
- NVD: [CVE-2026-59728](https://nvd.nist.gov/vuln/detail/CVE-2026-59728), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-59728 · Whole record: https://cve.day/CVE-2026-59728.json · Rebuilt by cve.day 2026-11-25T22:59:30.266Z
