Skip to content
Access control Disclosed report Advanced CVE-2026-106071

Permission Model filesystem over-grant via wildcard radix lookup

A flaw in Node.js Permission Model filesystem enforcement lets a path that is shorter than a wildcard grant's prefix be treated as a match. An attacker could read or write files that the wildcard rule was not meant to cover, such as a file whose name is a prefix of the granted pattern.

malikhamzaiqbal Follow with sysfk

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 47 days
  • Disclosed after 53 days

Summary by the program

A flaw in Node.js Permission Model filesystem enforcement can grant access to paths that do not match a wildcard --allow-fs-read or --allow-fs-write rule.

When the requested path is shorter than the prefix of a wildcard grant, the radix tree lookup stops comparing early and treats the path as a match. For example, --allow-fs-read=/etc/passwd.* also allows reading /etc/passwd. This requires the wildcard grant to sit directly under the root of the permission tree, for example when it is the only grant for that scope. This is a different root cause from CVE-2026-58043.

This vulnerability affects Node.js 26.x.

The original report as published on HackerOne, by malikhamzaiqbal. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the radix tree lookup returns a match when the requested path ends before the wildcard grant's prefix has been fully compared, instead of requiring the full prefix to match.

What the attacker needed

Node.js 26.x; wildcard fs grant at permission tree root

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Node.js has a feature that lets you restrict which files a program may read or write, using patterns that can include a wildcard. The check that compares a requested file path against those patterns stopped too early, so a shorter path was wrongly accepted as matching. That means a program could reach a file the operator did not intend to allow.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.