• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

twbs / bootstrap / 45473192019
96%
main: 93%

Build:
Build:
LAST BUILD BRANCH: v6-jd-update-lockfile
DEFAULT BRANCH: main
Ran 24 Nov 2026 07:44PM UTC
Jobs 1
Files 26
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Nov 2026 07:43PM UTC coverage: 96.006% (-0.08%) from 96.09%
45473192019

push

github

web-flow
Sanitizer: validate srcset URLs and fail closed without DOMParser (#42840)

* Sanitizer: validate srcset URLs and fail closed without DOMParser

img srcset is in the allowList but was not treated as a URI attribute,
so javascript: (and other unsafe) candidates were never checked. Parse
srcset per candidate so commas inside data: URLs are not treated as
separators.

If DOMParser is missing, clobbered, or throws, return an empty string
instead of the original markup. Returning the input would skip
sanitization.

* Fix lint and raise JS bundlewatch budgets

Silence no-script-url on the srcset XSS fixtures and bump the gzip
caps to cover the srcset parser.

* Move no-script-url disables onto the fixture strings

ESLint flags the assertion literal, not the template line, and treats
an unused disable-next-line as an error under --report-unused-disable-directives.

* Parse data: srcset candidates without swallowing later URLs

A descriptor on a later candidate must not extend a data: URL that has
no descriptor of its own. Split on a comma-plus-space after the data
payload so javascript: (and other) candidates are checked separately.

* Give the JS budgets slack after the srcset parser grew

CI measured a few hundred extra gzipped bytes over the previous caps.
Raise the limits by a quarter to half kilobyte so a later comment or
test does not fail bundlewatch again.

* Split data: srcset candidates even when the comma has no spaces

A later javascript: URL after data:image/png;base64,AAAA,payload
was still swallowed when there was no space around the comma.
Treat a comma followed by a scheme, path, or file as a new candidate.

* fix(sanitizer): preserve commas inside srcset URLs

The sanitizer split some valid image URLs at commas. Follow the HTML
token boundaries so commas inside URLs and descriptors stay intact.

Keep Bundlewatch tracking the v5-dev branch.

* fix(sanitizer): require parser matches to consume input

The srcset parser checks two patterns that... (continued)

679 of 741 branches covered (91.63%)

Branch coverage included in aggregate %.

32 of 34 new or added lines in 1 file covered. (94.12%)

2061 of 2113 relevant lines covered (97.54%)

138.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
92.77
-2.47% js/src/util/sanitizer.js
Jobs
ID Job ID Ran Files Coverage
1 45473192019.1 24 Nov 2026 07:44PM UTC 26
96.01
GitHub Action Run
Source Files on build 45473192019
  • Tree
  • List 26
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45473192019
  • 5c9cc860 on github
  • Prev Build on v5-dev (#45315126689)
  • Next Build on v5-dev (#45473210363)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc