Bun issue (Nov 26): Bun fs.promises.open() Fails When globalThis.FinalizationRegistry is Replaced
Is it fixed? Not yet.
Ongoing since Nov 26, 14:19 UTC. First reported Nov 26, 14:19 UTC.
What happened
In Bun v1.4.5, calling fs.promises.open() fails if globalThis.FinalizationRegistry has been overridden or replaced, whereas Node.js remains unaffected. The issue prevents file operations when libraries or environments modify the FinalizationRegistry global.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Outage timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
fs.promises.open() fails when globalThis.FinalizationRegistry is replaced; Node is unaffected
Source
Reports of this outage
1 report · 1 GitHubShow
- [1]GitHub First reportfs.promises.open() fails when globalThis.FinalizationRegistry is replaced; Node is unaffected(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.5+a7733435c What platform is your computer? Darwin 25.5.0 arm64 arm What steps can reproduce the bug? // repro.mjs import fs from "node:fs"; fs.writeFileSync("/tmp/a.txt", "x\n"); globalThis.FinalizationRegistry = function () { throw new Error("FinalizationRegistry blocked"); }; try { const h = await fs.promises.open("/tmp/a.txt"); await h.readFile(); await h.close(); console.log("fs.promises.open: ok"); } catch (e) { console.log("fs.promises.open: FAIL",…
by olehrez 0upvotes 1comments
Bun issue FAQ
What happened in the Bun issue, and why?
Ongoing since Nov 26, 14:19 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.
What is affected by the Bun issue?
Bun (versions: 1.4.5+a7733435c).
When did the Bun issue start and end?
It started Nov 26, 14:19 UTC and is still ongoing (12 h 7 min so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.