Skip to content
Access control Disclosed report Intermediate CVE-2026-58039

Permission Model bypass: process.report writes (and overwrites) files outside --allow-fs-write paths

The Node.js Permission Model did not enforce the --allow-fs-write restriction for files written by process.report, so an attacker could write or overwrite files outside the permitted paths. This could breach confidentiality or bypass the intended security boundary in affected configurations.

sinan-polat Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 38 days
  • Disclosed after 39 days

Summary by the program

A flaw in Node.js Permission Model enforcement allows process.report writes (and overwrites) files outside --allow-fs-write paths.

This can lead to confidentiality impact or bypass of the intended security boundary under affected configurations.

This vulnerability affects Node.js 22.x, 24.x, and 26.x.

The original report as published on HackerOne, by sinan-polat. 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

Impact

An attacker could write or overwrite files outside the allowed paths, potentially affecting confidentiality or bypassing the security boundary in affected configurations.

What the attacker needed

Node.js 22.x, 24.x, or 26.x; Permission Model enabled with --allow-fs-write

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 security feature that lets you restrict which files a program can write to. This report says that one specific feature, the diagnostic report generator, ignored that restriction and could still write files anywhere. That means a program that was supposed to be limited could still change files it should not touch.

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.