8.0.3 — Security Patch
- BB-01: Fix XML injection via unescaped
xslUrlin stylesheet processing instruction — special characters (&,",<,>) in the XSL URL are now escaped before being interpolated into the<?xml-stylesheet?>processing instruction - BB-02: Enforce 50,000 URL hard limit in
XMLToSitemapItemStream— the parser now stops emitting items and emits an error when the limit is exceeded, rather than merely logging a warning - BB-03: Cap parser error array at 100 entries to prevent memory DoS —
XMLToSitemapItemStreamnow tracks a separateerrorCountand stops appending to theerrorsarray beyondLIMITS.MAX_PARSER_ERRORS - BB-04: Reject absolute
destinationDirpaths insimpleSitemapAndIndexto prevent arbitrary file writes — passing an absolute path (e.g./tmp/sitemaps) now throws immediately with a descriptive error - BB-05:
parseSitemapIndexnow destroys source and parser streams immediately when themaxEntrieslimit is exceeded, preventing unbounded memory consumption from large sitemap index files - Many thanks to @maru1009 For the report