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