Thank You Next Part 2: Finding an Order-of-Operations Bypass to the Most Vexing Bugfix Ever 0 ▲ TrebledJ's Pages 32 minutes ago · 11 min read2218 words · Tech · hide You know how some vendors like to hide security fixes? Well, it seems Next.js has come up with an entirely new way of hiding security issues! If there was ever a Nobel Prize for (Inadvertently?) Hiding Security Issues, my vote would go to Next.js, then maybe Fortinet.1 Last episode on the Thank You Next fever dream, I showcased multiple DOM-Based XSS vulnerabilities affecting 11 Next.js applications, ranging from AI workflow apps to self-hosted productivity apps. The flaw comes when untrusted input is passed into router.push and router.replace. But! (intense music intensifies!) In versions 16.2.0 onward, Next.js introduced additional checks to its Router implementation. The unsaid expectation is that JavaScript URLs entering Next Router should no longer work, meaning we can mourn the death of router.push and router.replace as XSS sinks. (Curses!) First: JavaScript URL XSS triggers successfully in Next.js 16.1.7. Second: Same payload does not work in and after Next.js 16.2.0. With the… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town