Skip to content

jQuery 4.1.0 ships, 3.x gets its final feature release

Both 4.1.0 and 3.8.0 patch a selector ReDoS bug, but 3.8.0 is the last feature release the ageing 3.x branch will ever get.

Source: jQuery Blog

jQuery shipped two releases on 17 November: 4.1.0, the newest feature release, and 3.8.0, the last one the 3.x branch will ever get. Both carry a fix for a ReDoS bug in the selector engine’s identifier matching, where a malformed selector could hang a page.

4.1.0 drops jQuery’s internal use of getElementsByTagName and getElementsByClassName in favour of querySelectorAll, adds a responseURL field to jqXHR objects so you can see where a redirect actually landed, and fixes .css() inside XML documents by switching to createElementNS. None of it breaks existing code.

3.8.0 is a send-off for the 3.x line: from here it gets only critical security fixes, while active development moves fully to 4.x. It formally deprecates the array methods push, sort and splice, along with the jQuery.expr pseudo-selector API, both already removed in 4.0, and points anyone hit by the new warnings at the jQuery Migrate plugin.

Why it matters: if you’re still running jQuery 3.x in production, in a Drupal or WordPress theme or a legacy internal tool, that selector ReDoS is worth patching on its own. And if you’ve been putting off the 3-to-4 migration, 3.8.0 is the last nudge you’ll get before 3.x stops getting anything but security fixes.

Share

Related reading

More from The Wire

All briefs