CVE-2026-21716: CVE-2024-36137 Patch Bypass - FileHandle.chmod/chown

Published Mar 24, 2026
·
Updated

An incomplete fix for CVE-2024-36137 leaves FileHandle.chmod() and FileHandle.chown() in the promises API without the required permission checks, while their callback-based equivalents (fs.fchmod(), fs.fchown()) were correctly patched.

As a result, code running under --permission with restricted --allow-fs-write can still use promise-based FileHandle methods to modify file permissions and ownership on already-open file descriptors, bypassing the intended write restrictions.

This vulnerability affects 20.x, 22.x, 24.x, and 25.x processes using the Permission Model where --allow-fs-write is intentionally restricted.

Other sources

An incomplete fix for CVE-2024-36137 leaves FileHandle.chmod() and FileHandle.chown() in the promises API without the required permission checks, while their callback-based equivalents (fs.fchmod(), fs.fchown()) were correctly patched.

As a result, code running under --permission with restricted --allow-fs-write can still use promise-based FileHandle methods to modify file permissions and ownership on already-open file descriptors, bypassing the intended write restrictions.

— Node.Js

Affected Software

22 affected componentsFixes available
OpenJS Foundation Node.js=20.x, =22.x, =24.x, =25.x
Microsoft azl3 nodejs 20.14.0-14
Microsoft azl3 nodejs24 24.13.0-3
Nodejs Node.js<=20.20.1
Nodejs Node.js>=22.0.0<=22.22.1
Nodejs Node.js>=24.0.0<=24.14.0
Nodejs Node.js>=25.0.0<=25.8.1
Node.js Node.js>=20.0.0<20.20.2, >=22.0.0<22.22.2, >=24.0.0<24.14.1, >=25.0.0<25.8.2
20.20.222.22.224.14.125.8.2
Node.js Node.js>=20.0.0<20.20.2
20.20.2
Node.js Node.js>=22.0.0<22.22.2
22.22.2
Node.js Node.js>=24.0.0<24.14.1
24.14.1
Node.js Node.js>=25.0.0<25.8.2
25.8.2
debian/nodejs
20.19.2+dfsg-1+deb13u222.22.2+dfsg+~cs22.19.15-1
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 20.20.2Fixed in 22.22.2Fixed in 24.14.1Fixed in 25.8.2
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 20.20.2
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 22.22.2
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 24.14.1
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 25.8.2
  6. Upgrade

    Upgrade debian/nodejs to a version that resolves this vulnerability.

    Fixed in 20.19.2+dfsg-1+deb13u2Fixed in 22.22.2+dfsg+~cs22.19.15-1

Event History

Mar 24, 2026
CVE Published
via Node.js·03:00 AM
Data Sourced
via Node.js·03:00 AM
DescriptionSeverityAffected Software
Mar 30, 2026
CVE Published
via MITRE·07:07 PM
Data Sourced
via MITRE·07:07 PM
DescriptionSeverity
Data Sourced
via Red Hat·08:02 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·08:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:16 PM
DescriptionSeverity
Mar 31, 2026
Data Sourced
via NVD·03:16 PM
Weakness
Apr 1, 2026
Data Sourced
via Microsoft·08:19 AM
DescriptionSeverityWeaknessAffected Software
Aug 19, 2026
Data Sourced
via NVD·01:18 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-21716?

CVE-2026-21716 is considered a medium severity vulnerability due to incomplete permission checks in the promises API.

2

How do I fix CVE-2026-21716?

To fix CVE-2026-21716, update your Node.js version to a secure release that addresses the permissions issue.

3

What software versions are affected by CVE-2026-21716?

CVE-2026-21716 affects Node.js versions 20.x, 22.x, 24.x, and 25.x.

4

What is the nature of CVE-2026-21716 vulnerability?

The vulnerability arises from inadequate permission checks in the `FileHandle.chmod()` and `FileHandle.chown()` functions in Node.js.

5

Can CVE-2026-21716 lead to privilege escalation?

Yes, CVE-2026-21716 could potentially allow for privilege escalation when running code under the `--permission` flag.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203