{"answers":{"affected":"2 open source packages ship an affected version, including @urql/next. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-24556 in the wild and no public exploit code.","fix":"Upgrade @urql/next to 1.1.1 or later.","what":"CVE-2024-24556 is a high-severity vulnerability in urql-graphql urql, published on 30 Jan 2024."},"fix_prompt":"Check this codebase for CVE-2024-24556 and fix it if it is affected.\n\nWhat it is: CVE-2024-24556 is a high-severity vulnerability in urql-graphql urql, published on 30 Jan 2024. \nExploitation: There is no known exploitation of CVE-2024-24556 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @urql/next (npm): affected all versions; fixed in 1.1.1\n- @urql/next (npm): affected all versions; fixed in 1.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-24556/ (Markdown: https://insights.sbomify.com/CVE-2024-24556/index.md)","id":"CVE-2024-24556","markdown":"https://insights.sbomify.com/CVE-2024-24556/index.md","name":"CVE-2024-24556","record":{"aliases":["GHSA-qhjf-hm5j-335w"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"urql","vendor":"nearform"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"XSS in @urql/next","id":"CVE-2024-24556","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Moby classic builder cache poisoning","id":"CVE-2024-24557"},"packages":[{"ecosystem":"npm","fixed":["1.1.1"],"introduced":["0"],"last_affected":[],"package":"@urql/next","purl":null,"source":"GHSA-qhjf-hm5j-335w"},{"ecosystem":"npm","fixed":["1.1.1"],"introduced":["0"],"last_affected":[],"package":"@urql/next","purl":"pkg:npm/%40urql/next","source":"GHSA-qhjf-hm5j-335w"}],"prev":{"headline":"Bludit - Insecure Token Generation","id":"CVE-2024-24554"},"products":["urql"],"published":"2024-01-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-29","vendors":["urql-graphql"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-24556/"}