# jQuery 4.1.0 patches a ReDoS flaw in its selector engine

> Hacker News story 50537156 · language: en · submitted 2026-11-17
> Web version: https://zeli.app/story/50537156
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 371 · by [petecooper](<https://news.ycombinator.com/user?id=petecooper>) · 💬 199
[original](<https://github.com/jquery/jquery/releases/tag/4.1.0>) · [HN discussion](<https://news.ycombinator.com/item?id=50537156>)

## Summary

jQuery 4.1.0 is out, and the headline fix is a regular-expression denial-of-service vulnerability in the selector's identifier matching. The release also drops getElementsByTagName and getElementsByClassName in favor of querySelectorAll, adds a responseURL field to jqXHR, supports form-associated custom elements in serialization, works around a Safari 27 regex bug, and adds guidelines for machine-generated contributions.

## Key quote

> Fix ReDoS in identifier matching

## HN discussion (199 comments)

### [hax0ron3](<https://news.ycombinator.com/item?id=50537763>)

> Although jQuery isn't very relevant these days, I still find its pattern of chaining a sequence of methods on a set chosen by a selector to be a beautiful example of going with a language's features.

### [CM30](<https://news.ycombinator.com/item?id=50538146>)

> I'm a tad surprised jQuery still exists, though it's kinda neat it does. Always interesting to see historical projects with less and less modern day relevance get continued like this.
>
> And while most of the use cases for jQuery have long since died out with things like classList, querySelector, etc, I do feel there's probably value in a framework that focuses on minor enhancements to a site rather than being the backbone of the whole thing. Like if you want a React or Angular or Vue equivalent, something like jQuery would be a terrible choice, but a lot of sites are static ones where the only scripting needed would be for minor things like dropdown menus or slideshows, and I can see a modern, lean library like this being a decent choice there.

### [bastawhiz](<https://news.ycombinator.com/item?id=50540390>)

> I don't think I'd reach for jQuery ever again, but I'd used it extensively fifteen years ago. I'm glad it's still alive and kicking. When it's already in a project that I'm making changes to, it's a cute way to do stuff easily that would be a pain with vanilla dom.

### [joel2oliver](<https://news.ycombinator.com/item?id=50538857>)

> I remember how painful it was to deal with IE/Netscape. Event handlers, etc... jQuery made so many lives easier. It’s quite an achievement, and I can stretch to say that JavaScript development might not be here today without it!

### [gosen](<https://news.ycombinator.com/item?id=50537310>)

> I'm actually surprised (in a good way) that it's still maintained, and it still helps half of the internet to function

### [dday9](<https://news.ycombinator.com/item?id=50539479>)

> jQuery was a godsend during the 2000s, those were some nasty times for cross-browser capability. Man, do you remember the old way to make asynchronous requests before you could just use the $.ajax method?!
>
> That's why I'm surprised to see still being maintained... ever since Chromium basically won the browser wars and pretty much everything's standardized now, it almost feels like it's lived out its usefulness.
>
> I also want to say I remember it being a bit bloated too. I did work for a client who had several users live in very remote areas where every bit of bandwidth was precious, and I wanted to say that one of the issues was with jQuery. For some reason the "slim" version didn't work for the use case either. This is going off of memory and was probably 15 years ago, so I could be entirely wrong.
>
> There's no denying it's prevalence though. Heck, datatables.net only recently phased out the jQuery dependency in April... of this year!

### [Prathamdeshmukh](<https://news.ycombinator.com/item?id=50540707>)

> Used it extensively 15 years ago, at the start of my career.
>
> Did not know this library is still being maintained

### [dmix](<https://news.ycombinator.com/item?id=50538530>)

> One of the nice things about LLMs is you can port 10+ year old apps using jQuery to vanilla js pretty easily.

---

## Cite

- Page: https://zeli.app/story/50537156
- Date: 2026-11-17
- Source: github.com (https://github.com/jquery/jquery/releases/tag/4.1.0)
- Hacker News: https://news.ycombinator.com/item?id=50537156

## Other languages

- zh: https://zeli.app/zh/story/50537156 · markdown: https://zeli.app/zh/story/50537156.md
- ja: https://zeli.app/ja/story/50537156 · markdown: https://zeli.app/ja/story/50537156.md
- ko: https://zeli.app/ko/story/50537156 · markdown: https://zeli.app/ko/story/50537156.md
- de: https://zeli.app/de/story/50537156 · markdown: https://zeli.app/de/story/50537156.md
- es: https://zeli.app/es/story/50537156 · markdown: https://zeli.app/es/story/50537156.md
- ru: https://zeli.app/ru/story/50537156 · markdown: https://zeli.app/ru/story/50537156.md
