Skip to content

1.0.18 is incorrectly affirming that, for example, ^15.5.2 in a package.json file is not vulnerableΒ #19

Description

@jookshub

If you would have

  "next": "^15.5.2"

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions