CVE-2026-21716: Vulnerability in nodejs node
CVE-2026-21716 is a vulnerability in Node. js affecting versions 20. x, 22. x, 24. x, and 25. x that use the Permission Model with restricted --allow-fs-write. An incomplete fix for a previous vulnerability (CVE-2024-36137) left the promise-based FileHandle methods chmod() and chown() without proper permission checks, allowing modification of file permissions and ownership on open file descriptors despite restrictions. The callback-based equivalents were correctly patched. This issue has a low severity score and no known exploits in the wild.
AI Analysis
Technical Summary
This vulnerability arises from an incomplete patch for CVE-2024-36137 in Node.js. While the callback-based file system methods fs.fchmod() and fs.fchown() were properly secured with permission checks, the promise-based FileHandle.chmod() and FileHandle.chown() methods remain vulnerable. When Node.js processes run with the Permission Model restricting --allow-fs-write, these promise-based methods can still modify file permissions and ownership on already-open file descriptors, effectively bypassing the intended write restrictions. Affected versions include 20.20.1, 22.22.1, 24.14.0, and 25.8.1.
Potential Impact
The vulnerability allows code running with restricted file system write permissions to bypass these restrictions and modify file permissions and ownership on open file descriptors using promise-based APIs. This could lead to unauthorized changes to file metadata, potentially impacting system integrity or security policies. The CVSS score of 3.3 reflects a low severity with limited impact, requiring local privileges and no user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official patch or fix links are provided at this time. Users should monitor Node.js vendor advisories for updates addressing this incomplete fix. Until a patch is available, avoid relying solely on the Permission Model's --allow-fs-write restrictions when using promise-based FileHandle methods.
CVE-2026-21716: Vulnerability in nodejs node
Description
CVE-2026-21716 is a vulnerability in Node. js affecting versions 20. x, 22. x, 24. x, and 25. x that use the Permission Model with restricted --allow-fs-write. An incomplete fix for a previous vulnerability (CVE-2024-36137) left the promise-based FileHandle methods chmod() and chown() without proper permission checks, allowing modification of file permissions and ownership on open file descriptors despite restrictions. The callback-based equivalents were correctly patched. This issue has a low severity score and no known exploits in the wild.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from an incomplete patch for CVE-2024-36137 in Node.js. While the callback-based file system methods fs.fchmod() and fs.fchown() were properly secured with permission checks, the promise-based FileHandle.chmod() and FileHandle.chown() methods remain vulnerable. When Node.js processes run with the Permission Model restricting --allow-fs-write, these promise-based methods can still modify file permissions and ownership on already-open file descriptors, effectively bypassing the intended write restrictions. Affected versions include 20.20.1, 22.22.1, 24.14.0, and 25.8.1.
Potential Impact
The vulnerability allows code running with restricted file system write permissions to bypass these restrictions and modify file permissions and ownership on open file descriptors using promise-based APIs. This could lead to unauthorized changes to file metadata, potentially impacting system integrity or security policies. The CVSS score of 3.3 reflects a low severity with limited impact, requiring local privileges and no user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official patch or fix links are provided at this time. Users should monitor Node.js vendor advisories for updates addressing this incomplete fix. Until a patch is available, avoid relying solely on the Permission Model's --allow-fs-write restrictions when using promise-based FileHandle methods.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- hackerone
- Date Reserved
- 2026-01-04T15:00:06.575Z
- Cvss Version
- 3.0
- State
- PUBLISHED
Threat ID: 69cacda7e6bfc5ba1d6188b1
Added to database: 3/30/2026, 7:23:19 PM
Last enriched: 4/7/2026, 10:53:56 AM
Last updated: 5/15/2026, 2:55:22 AM
Views: 81
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.