chore(deps): update dependency @astrojs/rss to v4.0.19 [security] - #188
Merged
Conversation
|
Site preview deployed to: https://block.github.io/ospo/projects-dashboard-preview-pr-188 (execution #29813626543 / attempt 1) |
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.14→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.v4.0.18Compare Source
Patch Changes
fdd2c5aThanks @blimmer! - Unpinfast-xml-parserto^5.5.7to resolve entity expansion CVEsv4.0.17Compare Source
Patch Changes
8d3f3aaThanks @Princesseuh! - Pinfast-xml-parserto 5.4.1 in order to fix an upstream bugv4.0.16Compare Source
Patch Changes
#15187
bbb5811Thanks @matthewp! - Update to Astro 6 beta#14956
0ff51dfThanks @matthewp! - Updates usage of zod to own dependency rather than relying onastro/zod#15561
413b0f7Thanks @renovate! - Updatesfast-xml-parserto v5.3.6#15283
daf41c6Thanks @eldair! - Updates validation to use Zod v4#15373
14252b2Thanks @renovate! - Updates zod to v4v4.0.15Compare Source
Patch Changes
d8e64efThanks @ArmandPhilippot! - Fixes the links to Astro Docs so that they match the current docs structure.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.