Files
Bjørn Erik PedersenandClaude Fable 5.1 c05c012a4a hexec: Fail on symlinks that escape the Node.js permission paths
Node's permission model checks the lexical path only and follows symlinks even
when they point outside the allowed set. This is a documented limitation, so
a symlink committed to the project tree (e.g. assets/css/x.css -> /etc/passwd)
could be read by a PostCSS plugin and end up in the published site.

Before invoking a Node tool, walk the allow-read and allow-write roots once per
Exec and fail if any symlink resolves outside them. Relative links inside the
tree, such as node_modules/.bin, are still fine. Users with a legitimate link
can add its target to security.node.permissions.allowRead.

Thanks to @DONG2209 for finding and reporting this issue.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-08 17:09:14 +02:00
..
2026-06-07 21:20:40 +02:00
2026-08-20 20:23:18 +02:00
2025-11-05 21:05:42 +01:00