Vulnerability
CVE-2026-21716
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.
62 advisories report this vulnerability, across 16 ecosystems.
Advisories in Chainguard
- CGA-4hmh-ffcq-9wrq
- CGA-4w4h-75cx-hfxr
- CGA-4wpw-65xj-h65m
- CGA-52cw-73f3-m2fm
- CGA-5qh8-7jjm-p249
- CGA-9vv5-q592-mhcv
- CGA-fxvp-3557-hxpc
- CGA-h6vg-65mq-v269
- CGA-pgcg-j794-rwgc
- CGA-q56x-rr75-ffmg
- CGA-qg29-rq4f-r345
- CGA-qvg5-79fg-6pxg
- CGA-rf56-fv5j-rcrw
- CGA-v969-c92h-xxq5
- CGA-xqp9-6qfg-hw7g
- CGA-xvr6-23qr-j4vg