Packages

@happy-dom/jest-environment

21.0.4 · 20 Oct 2026MIT269.4k / weekRepositoryHomepagenpmAtom feed

Upgrading @happy-dom/jest-environment From 1.0.2 to 21.0.4

709 releases in betweennotes for 533

Reading releases, release notes and advisories…

Other targets from 1.0.2Newest 1.x1.18.2
2.0.0 has no release note on GitHub or in the repository's changelog, so its breaking changes are missing from the counts below.
  1. 1.0.2yours
  2. 14 releases
  3. 1.1.14security
  4. 40 releases
  5. 2.0.0major
  6. 74 releases
  7. 2.39.1security
  8. 22 releases
  9. 2.50.0security
  10. 7 releases
  11. 3.0.0major
  12. 5 releases
  13. 4.0.0major
  14. 3 releases
  15. 5.0.0major
  16. 8 releases
  17. 6.0.0major
  18. 4 releases
  19. 7.0.0major
  20. 39 releases
  21. 8.0.0major
  22. 32 releases
  23. 9.0.0major
  24. 59 releases
  25. 10.0.0major
  26. 34 releases
  27. 11.0.0major
  28. 10 releases
  29. 12.0.0major
  30. 27 releases
  31. 13.0.0security
  32. 52 releases
  33. 14.0.0major
  34. 43 releases
  35. 15.0.0major
  36. 26 releases
  37. 15.10.2security
  38. 14 releases
  39. 16.0.0major
  40. 28 releases
  41. 17.0.0major
  42. 50 releases
  43. 18.0.0major
  44. 1 release
  45. 19.0.0major
  46. 2 releases
  47. 20.0.0security
  48. 20.0.1security
  49. 47 releases
  50. 20.8.8security
  51. 20.8.9security
  52. 36 releases
  53. 20.14.6security
  54. 21.0.0security
  55. 1 release
  56. 21.0.2security
  57. 21.0.3security
  58. 21.0.4target
25+
changes to make
0
advisories fixed
419+
new
334+
fixes

Counted from 533 of 709 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking20.0.0
  • Breaking20.0.0
  • Breaking19.0.0
  • Breaking18.0.0
  • Breaking17.0.0
  • Breaking16.0.0
  • Breaking15.0.0
  • Breaking14.0.0
  • Breaking13.0.0
  • Breaking12.0.0

Security

  • Fixed a code injection vulnerability in the ESM compiler - By @capricorn86

    21.0.4
  • Fixes security vulnerability where authorization header was forwarded when redirecting - By @capricorn86

    21.0.3
  • Fixes SSRF security vulnerability by doing a target-origin bypass in the proxy server in @happy-dom/server-renderer - By @capricorn86

    21.0.2
  • Disables CSS and IFrame loading by default to prevent server-side request forgery (SSRF) - By @capricorn86

    21.0.0
  • Fixes cookie scope forgery vulnerability - By @capricorn86

    20.14.6
  • A security advisory (GHSA-w4gp-fjgq-3q4g) was reported for this security vulnerability.

    20.8.9
  • A security advisory (GHSA-6q6h-j7hj-3r64) has been reported that shows a security vulnerability where it may be possible to escape the VM context and get access to process level functionality in unsafe environments using CommonJS.

    20.8.8
  • A security advisory has been reported showing that the recommended preventive measure of running Node.js with --disallow-code-generation-from-strings wasn't enough to protect against attackers escaping the VM context and accessing process-level functions.

    20.0.1
  • A security advisory (GHSA-37j7-fg3j-429f) has been reported that shows a security vulnerability where it's possible to escape the VM context and get access to process level functionality.

    20.0.0
  • Fixes a security vulnerability that allowed for server side code to be executed by a <script> tag - By @capricorn86 in task #1585

    15.10.2

Release by release

  1. 21.0.4

    Security fix20 Oct 20261 fix
    • Security

      Fixed a code injection vulnerability in the ESM compiler - By @capricorn86

    • Fixed

      Fixed cross-origin isolation so opaque-origin data: iframes cannot access their parent or top window - By @capricorn86

  2. 21.0.3

    Security fix15 Oct 2026
    • Security

      Fixes security vulnerability where authorization header was forwarded when redirecting - By @capricorn86

  3. 21.0.2

    Security fix15 Oct 2026
    • Security

      Fixes SSRF security vulnerability by doing a target-origin bypass in the proxy server in @happy-dom/server-renderer - By @capricorn86

  4. 21.0.1

    12 Oct 20261 new
  5. 21.0.0

    Security fix11 Oct 2026
  6. 20.14.6

    Security fix8 Oct 2026
    • Security

      Fixes cookie scope forgery vulnerability - By @capricorn86

  7. 20.14.5

    12 Sep 20261 fix
    • Fixed

      Preserve character references in comment data - By @hampustagerud in task #2409

  8. 20.14.4

    12 Sep 20261 fix
    • Fixed

      End comments at the first comment end tag when it overlaps a comment start tag - By @hampustagerud in task #2407

2 other lines we could not sort, mostly version bumps
  • You may have to transpile Happy DOM to ES5 if the rest of your code is executed using ES5.

    3.0.0
  • You no longer have to execute VM.createContext(window) as the default Window class is already a VM context. However, it is not necessary to do this change as the createContext() will just ignore already contextified objects.

    3.0.0

7 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.