Skip to content

NPM package security #342

@joelpittet

Description

@joelpittet

Coming from an advisory and noticing that we are using this project

ADVISORY: Next.js – Critical Authentication Bypass Vulnerability – CVE-2025-29927

Summary

A critical security vulnerability (CVE-2025-29927) in Next.js middleware allows attackers to bypass authorization checks in affected versions.

This issue impacts all versions of Next.js, with patches now available. Users of self-hosted deployments should update immediately.
Affected Versions

11.1.4 through and including 13.5.6
14.0 up to 14.2.25
15.0 up to 15.2.3

Fixed Versions

12.3.5
13.5.9
14.2.25
15.2.3

Details
Impact:

Authorization checks in Next.js middleware can be bypassed, allowing unauthorized access.
Exploitability:

No preconditions required – all affected versions are vulnerable.

Checking NPM's audit resulted in quite a few. Of course some are build/dev dependencies and would never see the light of day (public web path).

❯ npm audit
...
187 vulnerabilities (7 low, 64 moderate, 72 high, 44 critical)

Proposed Solution:
Try to bring the critical and high NPM security issues down to 0 by upgrading some of the dependencies to newer releases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions