Claude Code 2.1.251 security fixes, restricted mode, model switch hooks, cache stats, and session management updates explained.

By Meng Li

Published: 2026-09-01

URL: https://pythonlibraries.substack.com/p/claude-code-just-got-8-new-updates


I have a habit of reading the Claude Code changelog — purely because I got burned once. An earlier version quietly changed install behavior, and it took me half a day to realize the upgrade was the culprit.

This week I went through the notes for the recent versions (2.1.248 to 2.1.251). Honestly, the official changelog reads like a telegram: a lot of good stuff is buried in dozens of “Fixed” lines, and it’s easy to miss if you don’t look carefully. I picked 8 that actually affect day-to-day use, ranked by importance.

1. The most urgent one first: two security holes in older versions

This goes first because it’s the “upgrade today” reason.

One is a symlink bypass. Old Read/Write/Edit permission checks looked at the path itself. If someone (or a malicious script) quietly replaced a file in your working directory with a symlink pointing outside, the check would pass, then the actual read/write would hit the link target — so files could be written outside the approved scope. Fixed in 2.1.251.

The other is more subtle: arithmetic-expression assignment bypassing approval. Commands like the following used to be treated as harmless assignments and auto-approved: