What is a realm in JavaScript? · Gal Weizman

May 6, 2024

Due to the rise of dependencies-based development, the JavaScript ecosystem (and the browser JavaScript ecosystem in particular) is far more vulnerable to what we know as “supply chain attacks” – and the ability to create new realms in JavaScript is being leveraged to successfully carry out such attacks against web apps (if you want to understand why that is I recommend reading my previous post on this).

Source: What is a realm in JavaScript? · Gal Weizman

Realms are an emerging feature of JavaScript that aim to address some security vulnerabilities of the language.

Gal Weizman details them here.