Is nesbot/carbon 2.1 vulnerable?
Composer · 2 releases from 2.1.0 to 2.1.1 · latest nesbot/carbon is 3.15.1 · checked 2 Nov 2026
Yes: 1 known advisory
Yes. nesbot/carbon 2.1.1, the last 2.1 release, is affected by 1 known security advisory (1 medium), including CVE-2025-22145. Upgrade to 2.72.6 or later to fix all of them.
Upgrade with:
composer require nesbot/carbon:^2.72.6Advisories affecting nesbot/carbon 2.1.1
Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
- Affected
- >=3.0.0 <3.8.4 · <2.72.6
- Fixed in
- 2.72.6, 3.8.4
Which of your client projects are still on nesbot/carbon 2.1?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact nesbot/carbon version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other nesbot/carbon versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Composer registry. Refreshed daily.