Skip to main content

@astrojs/rss EUVDEUVD-2026-49584

| CVE-2026-59728 MEDIUM
XML Injection (aka Blind XPath Injection) (CWE-91)
2026-07-20 https://github.com/withastro/astro GHSA-8j5q-mfj2-5q9q
4.3
CVSS 3.1 · Vendor: https://github.com/withastro/astro
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit malicious XML payload via public CMS or form
  2. Delivery
    Attacker-controlled value stored in source.title or enclosure.type
  3. Exploit
    Astro RSS generator interpolates value unescaped into XML template string
  4. Execution
    fast-xml-parser parses injected markup as real XML elements
  5. Persist
    Poisoned feed XML serialized and served to all subscribers
  6. Impact
    Feed readers render attacker-controlled links or metadata

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization XPath query parameterization
Exploitation Conditions

Exploitation requires that attacker-controlled data reaches the source.title or enclosure.type fields of an RSSFeedItem object passed to getRssString() or rss(). This is only possible when the Astro site populates RSS item fields from an external, partially untrusted source such as a CMS (e.g., Contentful, Sanity, headless WordPress), a database accepting user submissions, or any pipeline where end-users can influence feed item metadata. Statically authored sites where all RSS item data is hardcoded by the developer are not exploitable. The CVSS vector (PR:N) assumes the content-submission channel is public-facing with no authentication; if the CMS is restricted to authenticated editors, the effective privilege level is higher than PR:N suggests. Downstream impact additionally requires a feed subscriber or feed reader to consume the poisoned XML (CVSS UI:R). SSR mode (output: 'server') amplifies impact by serving the poisoned feed dynamically to all subscribers on every request rather than only affecting a single static build artifact.

Impact

The NVD CVSS 3.1 score of 4.3 (Medium) reflects the limited direct impact: no confidentiality or availability loss, only low integrity impact (I:L), and a required downstream user interaction (UI:R - a feed subscriber must parse the poisoned feed). The vector AV:N/AC:L/PR:N is consistent with a public-facing CMS or form accepting the malicious field values without authentication. The real-world risk is conditional: sites serving RSS feeds from entirely static, developer-controlled data are not exploitable; only deployments where attacker-controlled external data (CMS submissions, database content, user-generated input) flows into source.title or enclosure.type are at risk. In SSR mode, every subscriber receives the poisoned feed on each request, amplifying the impact. A working POC is publicly documented in GHSA-8j5q-mfj2-5q9q, lowering the exploitation bar. No active exploitation is indicated (no CISA KEV listing). EPSS data was not available in the provided input and cannot be inferred. The combination of a low CVSS score but public POC and SSR amplification makes this a genuine priority for Astro deployments that ingest external content.

Exploit ScenarioDerived

An attacker submits a blog post or media item through a public CMS or user-facing form, setting the source.title value to </source><item><title>INJECTED</title><link>https://evil.com</link></item><source>. When the Astro site regenerates its RSS feed (or serves it dynamically in SSR mode), the unescaped value is interpolated into the XML template, causing fast-xml-parser to parse the injected <item> as a legitimate feed entry with an attacker-controlled link. A publicly available proof-of-concept in GHSA-8j5q-mfj2-5q9q confirms this produces the injected link field in the parsed output.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 20, 2026

XML injection in @astrojs/rss (all versions from 1.0.0 through 4.0.18) allows an attacker who can supply content to the source.title or enclosure.type RSS feed item fields to break out of XML string templates and inject arbitrary XML elements into the generated feed. The root issue is that both fields are interpolated directly into raw XML strings before fast-xml-parser processes them, with no escaping applied, so XML metacharacters are treated as markup rather than text. A public proof-of-concept is confirmed in the GitHub Security Advisory; no CISA KEV listing is indicated, and EPSS data was not provided in the available intelligence.

RemediationAI

Upgrade @astrojs/rss to version 4.0.19 or later - the first patched release per the vendor advisory at https://github.com/withastro/astro/security/advisories/GHSA-8j5q-mfj2-5q9q and the release tag at https://github.com/withastro/astro/releases/tag/@astrojs/rss@4.0.19. The fix (https://github.com/withastro/astro/pull/17209) replaces string-interpolated XML construction with structured object assignment, so fast-xml-parser's own builder handles character escaping. If an immediate upgrade is not feasible, the most effective workaround is to sanitize or reject source.title and enclosure.type input values before they reach the RSS generator by stripping or entity-encoding the characters <, >, &, and ". This can be applied in the data layer (CMS validation, database input sanitization) or as a thin wrapper around the getRssString / rss() call. Note that blocking these characters may truncate legitimate content containing ampersands or angle brackets in titles, so the trade-off is mild content fidelity loss versus injection risk.

Affected VersionsENISA

astro 1.0.0, < 4.0.19

Affected Packages

npm @astrojs/rss fix: 4.0.19
euvd astro_1_0_0 fix: 4.0.19

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The @astrojs/rss npm package (pkg:npm/@astrojs_rss) is the official RSS feed generation library for the Astro web framework. It constructs RSS XML by interpolating user-supplied field values into template literal strings and then passing those strings to fast-xml-parser for parsing. The vulnerability (CWE-91, XML Injection) arises in packages/astro-rss/src/index.ts: source.title is inserted between <source ...> and </source> tags with no escaping, and enclosure.type is inserted into an XML attribute value with no quoting or entity encoding. Because fast-xml-parser then parses these strings as real XML, any injected elements become part of the parsed object and are subsequently serialized into the output feed. The Zod schema validates both fields only as z.string(), placing no restriction on XML special characters. The fix (PR #17209) eliminates string interpolation entirely and replaces it with structured object assignment ({ '#text': value, '@_attr': value }), letting fast-xml-parser's builder handle proper serialization.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/withastro/astro) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
vuln.today AI 4.3 MEDIUM

Network-delivered feed injection requiring no app-level auth (PR:N), but feed subscriber must parse the result (UI:R); impact limited to feed integrity corruption only.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/withastro/astro).

CVSS VectorVendor: https://github.com/withastro/astro

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

In @astrojs/rss, the source.title and enclosure.type item fields are interpolated directly into XML template strings without XML-character escaping before being parsed by fast-xml-parser. An attacker who controls these field values can inject arbitrary XML elements into the generated RSS feed.

Details

Two fields in packages/astro-rss/src/index.ts are affected:

source.title

typescript
item.source = parser.parse(
  `<source url="${result.source.url}">${result.source.title}</source>`,
).source;

source.title is validated only as z.string(), with no restriction on XML special characters. A value containing </source> followed by arbitrary XML is parsed as real XML elements, merging injected nodes into the RSS item.

enclosure.type

typescript
item.enclosure = parser.parse(
  `<enclosure url="${enclosureURL}" length="${result.enclosure.length}" type="${result.enclosure.type}"/>`,
).enclosure;

enclosure.type is also z.string() and is interpolated into an XML attribute without escaping. A value containing " followed by additional XML can break out of the attribute and inject extra elements.

Proof of Concept

source.title injection:

javascript
source: {
  url: 'https://legit.example.com',
  title: '</source><item><title>INJECTED</title><link>https://evil.com</link></item><source>',
}
// Result: RSS feed contains an injected <item> element with an evil.com link

enclosure.type injection:

javascript
enclosure: {
  url: 'https://example.com/a.mp3',
  length: 0,
  type: 'audio/mpeg" /><link>https://evil.example.com</link><enclosure fake="',
}
// Result: RSS feed contains an injected <link> element

Both injections were confirmed with fast-xml-parser: the injected "link": "https://evil.com" appears in the parsed output.

Impact

An attacker who can control source.title or enclosure.type values (e.g., via a CMS, database, or user-submitted content that populates RSSFeedItem) can inject arbitrary XML into the generated RSS feed. This corrupts feed structure, injects false metadata (e.g., 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.

Patches

Fixed in @astrojs/rss@4.0.19.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
RSS-specific subpackage of the Astro framework, niche footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy