chore(deps): update dependency @astrojs/rss to v4.0.19 [security]#351
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency @astrojs/rss to v4.0.19 [security]#351renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
🎊 PR Preview 65a6281 has been successfully built and deployed to https://catppuccin-website-build-pr-351.surge.sh 🕐 Build time: 0.015s 🤖 By surge-preview |
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.

This PR contains the following updates:
4.0.18→4.0.19@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 the GitHub Advisory Database (CC-BY 4.0).
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.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.