Skip to content

RSS feeds use Atom-style <author> elements, which are invalid in RSS 2.0 #2577

Open

Description

@NopeCharon

Environment information

Version: main at a3cb863 and the live site, https://expressjs.com

Platform: any feed reader or feed validator

Node.js version: not relevant, this is generated build output

Any other relevant information: both feeds are affected, since they share getAuthorsCustomData() in src/utils/rss.ts.

What steps will reproduce the bug?

  1. Open https://expressjs.com/feed.xml or https://expressjs.com/vulnerabilities.xml.
  2. Look at any <item>.

Each item lists its authors like this:

<author><name>Ulises Gascon</name><uri>https://github.com/UlisesGascon</uri></author>

That's the Atom author format. In RSS 2.0, <author> is a text element that must hold the author's email address, and <name>/<uri> aren't defined there. Feed validators reject it, and readers either skip the author or show nothing useful.

The names are also inserted into the XML without escaping, so an author name containing & or < would corrupt the item.

Expected: each author appears in a valid RSS element. The usual choice for author names in RSS is Dublin Core's <dc:creator>, one per author, with the dc namespace declared on <rss>.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions