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

Permission Model Bypass: `trace_events.createTracing().enable()` Writes Trace Logs Outside `--allow-fs-write`

The Node.js permission model does not enforce --allow-fs-write when trace_events.createTracing().enable() writes trace logs, so trace logs can be written outside the allowed paths.

0xoroot Follow

Originally disclosed on HackerOne

  • Triaged in 30 hours
  • Fixed in 27 days
  • Disclosed after 27 days

Summary by the program

A flaw in Node.js Permission Model enforcement allows trace_events.createTracing().enable() Writes Trace Logs Outside --allow-fs-write.

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 0xoroot. 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 who can run code in a Node.js process restricted by the permission model could write trace log files outside the allowed paths, potentially affecting confidentiality or bypassing the intended security boundary.

What the attacker needed

Node.js 22.x, 24.x, or 26.x; Permission model enabled with --allow-fs-write; Ability to run code in the process

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 one specific function for recording trace logs ignores that restriction and can still write files. That means a program that is supposed to be locked down could still create or modify files on disk.

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 by 0xoroot

View all

4 more disclosed reports, best first.

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.