If you would have
then 1.0.18 will yield
π fix-react2shell-next - CVE-2025-66478 vulnerability scanner
π Found 28 package.json file(s)
β No vulnerable packages found!
Your project is not affected by CVE-2025-66478.
while with a pinned version 15.5.2 it will yield
π fix-react2shell-next - CVE-2025-66478 vulnerability scanner
π Found 28 package.json file(s)
π¨ Found 1 vulnerable file(s):
π package.json
next: 15.5.2 β 15.5.7
β οΈ The problem is, you cannot expect ^15.5.2 to not be vulnerable, as it depends on the e.g. package-lock.json contents or another lockfile - so this might be very misleading, if you are not aware of that. In this case the lockfile version was 15.5.6 - so a vulnerable version!
βΉοΈ Checked with npx fix-react2shell-next on Node 22.16.0
π‘ I would expect that the tool would warn in both cases, unless it verifies via the lockfiles, that the most recent version is installed.
π See also Issue #12, which might be related, but I could not reproduce that behaviour.