GHSA-f87g-xv8r-7p7x: Medium severity npm/next vulnerability

Published Oct 7, 2026
·
Updated

In Next.js App Router applications built with webpack, metadata image routes such as opengraph-image and twitter-image ignore the dynamicParams route segment option. An attacker can request metadata image URLs for dynamic segments that were deliberately excluded from generateStaticParams().

Affected Software

1 affected componentFixes available
npm/next>=16.0.0<16.3.8
16.3.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/next to a version that resolves this vulnerability.

    Fixed in 16.3.8

Event History

Oct 7, 2026
Advisory Published
via GitHub·08:31 PM
Data Sourced
via GitHub·08:31 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments should be prioritized for review?

Prioritize Next.js App Router applications built with webpack that expose opengraph-image or twitter-image routes for dynamic segments. The issue is relevant where dynamic segments were intentionally omitted from generateStaticParams() and controlled with dynamicParams.

2

What must an attacker do to exploit this?

An attacker needs only to send requests to metadata image URLs corresponding to dynamic segments that were excluded from generateStaticParams(). The supplied vector indicates network access, low attack complexity, and no required privileges or user interaction.

3

How can we determine whether an application is affected?

Review metadata image route handling for opengraph-image and twitter-image in webpack-based App Router builds. Determine whether requests for dynamic segment values excluded from generateStaticParams() are still served despite the intended dynamicParams restriction.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203