CVE-2024-23841: XSS in @apollo/experimental-nextjs-app-support

Published Jan 30, 2024
·
Updated

Impact

The @apollo/experimental-apollo-client-nextjs NPM package is vulnerable to a cross-site scripting vulnerability. This vulnerability arises from improper handling of untrusted input when @apollo/experimental-apollo-client-nextjs performs server-side rendering of HTML pages. To fix this vulnerability, we implemented appropriate escaping to prevent javascript injection into rendered pages.

Patches

To fix this issue, please update to version 0.7.0 or later.

Workarounds

There are no known workarounds for this issue. Please update to version 0.7.0

Other sources

apollo-client-nextjs is the Apollo Client support for the Next.js App Router. The @apollo/experimental-apollo-client-nextjs NPM package is vulnerable to a cross-site scripting vulnerability. To exploit this vulnerability, an attacker would need to either inject malicious input (e.g. by redirecting a user to a specifically-crafted link) or arrange to have malicious input be returned by a GraphQL server (e.g. by persisting it in a database). To fix this issue, please update to version 0.7.0 or later.

NVD

Affected Software

2 affected componentsFixes available
npm/@apollo/experimental-nextjs-app-support<=0.6.0
0.7.0
apollographql Apollo Client Node.js<0.7.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@apollo/experimental-nextjs-app-support to a version that resolves this vulnerability.

    Fixed in 0.7.0
  2. Upgrade

    Upgrade @apollo/experimental-apollo-client-nextjs to a version that resolves this vulnerability.

    Fixed in 0.7.0
  3. Upgrade

    Upgrade apollo-client-nextjs to a version that resolves this vulnerability.

    Fixed in 0.7.0

Event History

Jan 30, 2024
CVE Published
via MITRE·05:14 PM
Data Sourced
via MITRE·05:14 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·08:57 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-23841?

CVE-2024-23841 is classified as a cross-site scripting vulnerability that poses a significant security risk.

2

How do I fix CVE-2024-23841?

To remediate CVE-2024-23841, upgrade the @apollo/experimental-nextjs-app-support package to version 0.7.0 or higher.

3

Which packages are affected by CVE-2024-23841?

CVE-2024-23841 affects the @apollo/experimental-nextjs-app-support package up to version 0.6.0 and the Apollo Client package below version 0.7.0.

4

What type of vulnerability is CVE-2024-23841?

CVE-2024-23841 is a cross-site scripting (XSS) vulnerability that can allow an attacker to inject malicious scripts.

5

What are the potential impacts of CVE-2024-23841?

The potential impact of CVE-2024-23841 includes unauthorized data access and user session hijacking due to improper handling of untrusted input.

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