Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Low

Node.js Permission Model bypass in FileHandle.chmod() and FileHandle.chown()

IdentifiersCVE-2026-21716CWE-863

CVE-2026-21716 is a low-severity permission bypass in Node.js affecting the promises-based filesystem API under the Permission Model. It is described as an incomplete fix for CVE-2024-36137: while the callback-based equivalents fs.fchmod() and fs.fchown() were patched to enforce permission checks, the promises API methods FileHandle.chmod() and FileHandle.chown() remained without the required enforcement. As a result, code running in a Node.js process started with --permission and restricted --allow-fs-write can still use these promise-based FileHandle methods on already-open file descriptors to change file mode bits and ownership, bypassing the intended filesystem write restrictions. The issue affects Node.js 20.x, 22.x, 24.x, and 25.x processes using the Permission Model.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows unauthorized modification of file permissions and file ownership despite the Permission Model's intended write restrictions. This can weaken filesystem access controls, alter ownership or mode bits on files reachable through already-open descriptors, and undermine sandboxing assumptions for restricted Node.js workloads. Based on the provided information, the primary impact is integrity violation of filesystem metadata rather than direct code execution.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible, avoid relying on the Permission Model alone to constrain filesystem metadata changes in affected versions. Do not expose already-open file descriptors to untrusted code when running with --permission and restricted --allow-fs-write, and avoid use of the affected promises-based FileHandle.chmod() and FileHandle.chown() methods in constrained environments. Prefer external OS-level sandboxing or isolation controls until patched versions can be deployed.

Remediation

Patch, then assume compromise.

Upgrade Node.js to a patched release that includes the fix for CVE-2026-21716. The provided content identifies patched versions as Node.js v20.20.2, v22.22.2, v24.14.1, and v25.8.2.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
NodejsNodejsapplication
Rocky LinuxNodejs24application
Rocky LinuxRocky Linuxoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity2

Community discussion across Reddit, Mastodon, and other social sources.