Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@next/playwright

Latest version: v16.5.0-rc.1

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: matt.straka, vercel-release-bot
143,839 Stars
32,651 Forks
162 Versions
2.3M Downloads
JavaScript Repo language

Scan summary

@next/playwright was last scanned on 30 Nov 2026 at version 16.5.0-rc.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 162 versions; the latest 5 were published within 3 days (28–30 Nov 2026).
  • Findings: No rules fired in version 16.5.0-rc.1.
  • Downloads: 2,345,268 downloads.

Versions

162 versions published
Versions and the rules that fired in each
VersionPublishedStatus
16.5.0-rc.1 LATEST 30 Nov 2026 No rules fired
16.5.0-canary.75 30 Nov 2026 No rules fired
16.5.0-canary.74 30 Nov 2026 No rules fired
16.5.0-canary.73 29 Nov 2026 Not shown
16.5.0-canary.72 28 Nov 2026 Not shown

No rules fired in 16.5.0-rc.1

Findings

Findings for v16.5.0-rc.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 16.5.0-rc.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@next/playwright

  • Status: Experimental. This API is not yet stable.
  • Requires: Cache Components to be enabled.

Playwright helpers for testing Next.js applications.

Instant Navigation Testing

An instant navigation commits immediately without waiting for data fetching. The cached shell — including any Suspense loading boundaries — renders right away, and dynamic data streams in afterward. The shell is the instant part, not the full page.

instant() lets you test whether a route achieves this. While the callback is active, navigations render only cached and prefetched content. Dynamic data is deferred until the callback returns. This lets you make deterministic assertions against the shell without race conditions.

The tool assumes a warm cache: all prefetches have completed and all cacheable data is available. This way you're testing whether the route is structured correctly for instant navigation, independent of network timing. If content you expected to be cached is missing inside the callback, it points to a problem — a missing use cache directive, a misplaced Suspense boundary, or a similar gap.

Examples

Loading shell appears instantly (dynamic content behind a Suspense boundary):

import { instant } from '@next/playwright'

test('shows loading shell during navigation', async ({ page }) => {
  await page.goto('/')

  await instant(page, async () => {
    await page.click('a[href="/dashboard"]')

    // The loading shell is visible — dynamic data is deferred
    await expect(page.locator('[data-testid="loading"]')).toBeVisible()
  })

  // After instant() returns, dynamic data streams in normally
  await expect(page.locator('[data-testid="content"]')).toBeVisible()
})

Fully instant navigation (all content is cached):

test('navigates to profile instantly', async ({ page }) => {
  await page.goto('/')

  await instant(page, async () => {
    await page.click('a[href="/profile"]')

    // All content renders immediately
    await expect(page.locator('[data-testid="profile-name"]')).toBeVisible()
    await expect(page.locator('[data-testid="profile-bio"]')).toBeVisible()
  })
})
Enabling in production builds

In development (next dev), the testing API is available by default. In production builds, it is disabled unless you explicitly opt in:

// next.config.js
module.exports = {
  experimental: {
    exposeTestingApiInProductionBuild: true,
  },
}

This is not meant to be deployed to live production sites. Only enable it in controlled testing environments like preview deployments or CI.

How it works

instant() sets a cookie that tells Next.js to serve only cached data during navigations. While the cookie is active:

  • Client-side navigations: The router renders only what is available in the prefetch cache. Dynamic data is deferred until the cookie is cleared.
  • Server renders (initial load, reload, MPA navigation): The server responds with only the static shell, without any per-request dynamic data.

When the callback completes, the cookie is cleared and normal behavior resumes.

Design

The layering between this package and Next.js is intentionally very thin. This serves as a reference implementation that other testing frameworks and dev tools can replicate with minimal effort. The entire mechanism is a single cookie:

// Set the cookie to enter instant mode
document.cookie = 'next-instant-navigation-testing=1; path=/'

// ... run assertions ...

// Clear the cookie to resume normal behavior
document.cookie = 'next-instant-navigation-testing=; path=/; max-age=0'

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @next/playwright

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229