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
..

Hugo

A fast and flexible static site generator built with love by bep, spf13, and friends in Go.


Netlify Status PRs Welcome

This is the repository for the Hugo documentation site.

Please see the contributing section for guidelines, examples, and process.

Install

npm i
hugo server