Live data from Hacker News

Next.js version 15.2.3 has been released to address a security vulnerability

nextjs.org

41–50 of 220 posts

Re: Next.js version 15.2.3 has been released to address a security vulnerability

#41
post #37
post #32

VC influence in the web space has been a fascinating thing. I hope Next's downfall sends a signal to the quality lib maintainers and changes direction (e.g. Remix and a f'd up router, TanStack w/ Start). SSR frameworks make me vomit.

SSR is fine. We used to call it "PHP" or "Ruby" or "Java." People need to stop reinventing things, but feature development outweighs maturity when you have funding.

Of course, nothing wrong with Request comes in → server processes it → HTML

Re: Next.js version 15.2.3 has been released to address a security vulnerability

#43

Vercel’s reputation is so cooked. Jeez.

This recent post by their CEO is funny in hindsight: https://xcancel.com/rauchg/status/1901786957149032869

Hypes up AI coding, hypes up AI for security in particular, then immediately faceplants onto a critical auth bypass.

Re: Next.js version 15.2.3 has been released to address a security vulnerability

#44

Earlier quoted context omitted.

HN has a very weird mind-set when it comes to JS frameworks. Next.JS is more than fine for 99% of web apps, and the fit only gets better the bigger your web app/platform. In general it's probably the framework that will give you the most bang for your buck.

expect you know, when you can bypass auth by adding an http header :)

Not that this isn't a serious attack vector (a possible one), but most implementations are not simply using middleware as a standalone check for authorization then blindly serving paths/content up.

That'd be pretty bad architecture in any stack.

Re: Next.js version 15.2.3 has been released to address a security vulnerability

#45
post #19

Is NextJS considered safe? Would you build something for the government or a big Corp with it?

I think you have to ask what it’s compared to. Certainly this is no worse than things we’ve seen in the PHP or Java space and people still use those. However, there is one argument you could make regarding the massive amount of complexity which Next takes on trying to blur client and server execution. That’s prone to creating confusion around validation and control flow, which is a notorious source of security vulner…

> no worse than things we’ve seen in Java space

My memory fails me - I can’t recall a vulnerability in the JVM ecosystem that allows an attacker to circumvent auth entirely with such trivial ease. Can you name an example?

Re: Next.js version 15.2.3 has been released to address a security vulnerability

#46
post #37

Earlier quoted context omitted.

SSR is fine. We used to call it "PHP" or "Ruby" or "Java." People need to stop reinventing things, but feature development outweighs maturity when you have funding.

> People need to stop reinventing things Why?

Because it denies people a chance to live in peace. If the ego constantly needs to justify itself, then we can't live in peace. If you need to learn, please do so on your own and bring what you can from your private learnings. It's not obvious to the rest of us why their framework needs such a security apparatus. The reason it's not obvious is because most of us don't see it as obvious (by definition, its not an obvious thing they are doing). Security, of all things, should be obvious to us all. As in, most of us should go "well this could have happened to any of us", but I don't think we are all thinking that. We are kind of thinking, "why would you confuse security to this degree across these layers?".

Re: Next.js version 15.2.3 has been released to address a security vulnerability

#47
post #39

Next.js is based on a fundamentally flawed premise that one can write code that runs in the browser as well as the backend. The security posture for the code running in the browser is very different from the code running on a trusted backend. A separation of concerns allows one to have two codebases, one frontend (untrustworthy but limited access) and one backend (trustworthy but a lot of access).

I don't think this is true in principle. It should be pretty easy to statically verify that the separation is safe using something similar to trusted types and the Typescript type checker. It's not possible in Next.js, but that doesn't mean the premise is wrong.

Re: Next.js version 15.2.3 has been released to address a security vulnerability

#49

Earlier quoted context omitted.

expect you know, when you can bypass auth by adding an http header :)

Not that this isn't a serious attack vector (a possible one), but most implementations are not simply using middleware as a standalone check for authorization then blindly serving paths/content up. That'd be pretty bad architecture in any stack.

so having "some protections" like db foreign key scoping that mitigates "well anyone can now bypass auth middleware for any route" makes this…

"not that bad on nextjs part"

no no, this is absolutely nuts.

Re: Next.js version 15.2.3 has been released to address a security vulnerability

#50
Looking at next I have to think that something went horribly wrong with front end development. It adds so much complexity for things that provide such minimal value to most apps.

React added a lot of complexity to the front end, but, for an app with a lot of front end state, brought a ton of value.

Next brings us file based routing, which seems cool, until you get into any sort of mildly complex use case, and — if your careful and don’t fuck it up, server side rendering, which I guess is cool, if you’re building an e-commerce product and is maybe cool for maybe a few other verticals?

Post reply on HN