Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.277 ·

File reads hardened against symlink/TOCTOU races (boundRead)

File reads are now hardened against symlink-swap race conditions

You'll notice Improvements
JSON All of v2.1.277
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.277,
ImprovementsSection of the release
What

A new internal function, boundRead, is used for file reads. It resolves a file's real path first, then opens it using flags that refuse to follow symlinks (O_NOFOLLOW on Linux, F_NOFOLLOW_ANY on macOS), and on Linux also double-checks /proc/self/fd to confirm the opened file matches the expected path. If a symlink (a file that points to another location) is found along the way, or the opened file doesn't match what was expected, the read is refused and a warning is shown.

Why

This protects against a class of security bug sometimes called TOCTOU (time-of-check-to-time-of-use), where a file is swapped for a symlink to a different, unintended file between the moment Claude Code checks it and the moment it actually reads it.

See this entry in the whole of v2.1.277 →

Feedback