Repository navigation
chore(bump): update dependency @astrojs/rss to v4.0.19 - #82
Open
superagent-security-dev[bot] wants to merge 1 commit into
Open
superagent-security-dev[bot] wants to merge 1 commit into
superagent-security-dev[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Superagent dependency update
This PR contains the following updates:
Security changes
1 linked advisories (1 medium). These are upstream advisories, not an assessment that this repository is affected. Review the complete details and release notes below.
Full advisory details and update notes
@astrojs/rss: XML Injection via Unescaped RSS Feed Fields
CVE-2026-59728 / GHSA-8j5q-mfj2-5q9q
More information
Details
Summary
In
@astrojs/rss, thesource.titleandenclosure.typeitem fields are interpolated directly into XML template strings without XML-character escaping before being parsed byfast-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.tsare affected:source.titlesource.titleis validated only asz.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.typeenclosure.typeis alsoz.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.titleinjection:enclosure.typeinjection: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.titleorenclosure.typevalues (e.g., via a CMS, database, or user-submitted content that populatesRSSFeedItem) 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.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release notes
Release Notes
withastro/astro (@astrojs/rss)
v4.0.19Compare Source
Patch Changes
fbcfa03Thanks @matthewp! - Hardens RSS feed generation by escaping thesourceandenclosureitem fields. These fields are now serialized as structured XML values, ensuring that special characters in values likesource.titleandenclosure.typeare always treated as text rather than markup, consistent with how other feed fields are handled.Managed by Superagent. Review the dependency changes and required checks before merging.