Critical flaw in Protobuf library enables JavaScript code execution

Brajeshwar 25 points 11 comments April 19, 2026
www.bleepingcomputer.com · View on Hacker News

Discussion Highlights (4 comments)

rvz

Both "Javascript" and "Typescript" are incredibly flawed languages and the entire npm ecosystem is the bane of the software security industry.

skybrian

How does the attacker supply a malicious schema? Can that be turned off? It doesn't seem like a normal thing to do.

gnabgib

Lots more details from Endor labs (flaw finder & source): https://www.endorlabs.com/learn/the-dangers-of-reusing-proto...

lioeters

> the library builds JavaScript functions from protobuf schemas by concatenating strings and executing them via the Function() constructor, but it fails to validate schema-derived identifiers, such as message names. Typical "eval is evil" issue.

Semantic search powered by Rivestack pgvector
5,012 stories · 47,220 chunks indexed