Discover · mozilla.org

No picture published by mozilla.org

Goodbye innerHTML, Hello setHTML: Stronger XSS Protection in Firefox 148

hacks.mozilla.org mozilla.org

Cross-site scripting (XSS) remains one of the most prevalent vulnerabilities on the web. The new standardized Sanitizer API provides a straightforward way for web developers to sanitize untrusted HTML before inserting it into the DOM. Firefox 148 is the first browser to ship this standardized security enhancing API, advancing a safer web for everyone. We expect other browsers to follow soon.

An XSS vulnerability arises when a website inadvertently lets attackers inject arbitrary HTML or JavaScript through user-generated content. With this attack, an attacker could monitor and manipulate user interactions and continually steal user data for as long as the vulnerability remains exploitable. XSS has a long history of being notoriously difficult to prevent and has ranked among the top three web vulnerabilities (CWE-79) for nearly a decade.

More ways to use this
Open on another device
Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

Names and references

  1. Hello — person

Named in it

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

Also from hacks.mozilla.org

  1. Intent to Ship: JPEG XLJake Archibald mozilla.org
  2. PACT: Anonymous Credentials for the WebDennis Jackson mozilla.org
  3. Announcing Web Serial Support in FirefoxHaik Aftandilian mozilla.org
  4. Behind the Scenes Hardening Firefox with Claude Mythos PreviewBrian Grinstead mozilla.org
  5. Trustworthy JavaScript for the Open WebFirefox Security Team mozilla.org
  6. Firefox Developer Edition and Beta: Try out Mozilla’s .rpm package!Bastien Orivel mozilla.org