Release2 sources
jQuery's 120-second hang now takes 4 ms in 4.1.0
The Brief · written from 2 sources
- jQuery 4.1.0 has been released, per its GitHub release page.
- A DEV Community author reports that a malicious selector took more than 120 seconds in jQuery 4.0.0 but about 4 ms in 4.1.0.
- In the author's test, the 4.1.0 build threw a syntax error on the regression test input instead of hanging.
Why it matters
Applications that pass untrusted or user-supplied strings into jQuery selectors could hang under the 4.0.0 behaviour described in the report, so upgrading removes that risk.
Who’s affected
- Teams using jQuery 4.0.x
What to do
- Upgrade to jQuery 4.1.0
- jQuery 4.0.0
- jQuery 4.1.0
- #jquery
- #javascript
- #release
- #performance
- #selectors
jQuery's 120-second hang now takes 4 ms in 4.1.0 The same malicious selector took more than 120 seconds in jQuery 4.0.0 and 4 milliseconds in 4.1.0. I ran both builds against the library's own regression test: the old one never finished, the new one threw a clean syntax error in…
Timeline
Full coverage · 2 sources
- 1h ago ↗
DEV Community: javascript
jQuery's 120-second hang now takes 4 ms in 4.1.0
- 6h ago ↗
Hacker News: Front Page
jQuery 4.1.0