{"id":"GHSA-gx5p-jg67-6x7h","kind":"vulnerability","aliases":["GHSA-gx5p-jg67-6x7h"],"related":[],"title":"WAF and framework adapter mitigations for React and Next.js vulnerabilities · Changelog","description":"WAF and framework adapter mitigations for React and Next.js vulnerabilities · Changelog\n\n# Changelog\n\nNew updates and improvements at Cloudflare.\n\nMay 7, 2026\n\n## WAF and framework adapter mitigations for React and Next.js vulnerabilities\n\nMultiple security vulnerabilities were disclosed by the React team and Vercel affecting React Server Components and Next.js. These include denial of service, middleware and proxy bypass, server-side request forgery, cross-site scripting, and cache poisoning issues across a range of severity levels.\n\nWe strongly recommend updating your application and its dependencies immediately. Patched versions are available for React (`react-server-dom-webpack`, `react-server-dom-parcel`, and `react-server-dom-turbopack` `19.0.6`, `19.1.7`, and `19.2.6`) and Next.js (`15.5.16` and `16.2.5`).\n\n#### WAF protections\n\nCloudflare WAF rules deployed in response to prior React Server Component CVEs (`CVE-2025-55184` ↗︎ and `CVE-2026-23864` ↗︎) already provide coverage for the newly disclosed denial-of-service vulnerabilities. These rules are enabled by default with a Block action for all customers using the Cloudflare Managed Ruleset, including Free plan customers using the Free Managed Ruleset.\n\n| Ruleset | Rule description | Rule ID | Default action |\n| --- | --- | --- | --- |\n| Cloudflare Managed Ruleset | React - DoS - `CVE-2025-55184` ↗︎ | `2694f1610c0b471393b21aef102ec699` | Disabled |\n| Cloudflare Managed Ruleset | React - DoS - `CVE-2026-23864` ↗︎ | `aaede80b4d414dc89c443cea61680354` | Block |\n\nThe existing rules detect the underlying attack patterns generically. As a result, they apply to the new `CVE-2026-23870` ↗︎ denial-of-service vulnerability in Server Components and the corresponding Next.js advisory `GHSA-8h8q-6873-q5fj` ↗︎.\n\nCloudflare is investigating whether WAF rules can be safely and effectively deployed for three of the high-severity advisories: `CVE-2026-23870` ↗︎ / `GHSA-8h8q-6873-q5fj` ↗︎, `GHSA-267c-6grr-h53f` ↗︎, and `GHSA-mg66-mrh9-m8jx` ↗︎. If it is possible to create a managed WAF rule that mitigates these CVEs and does not potentially break application behavior, Cloudflare will add additional managed WAF rules. These rules will be announced through the WAF changelog. Because these vulnerabilities were shared with Cloudflare with minimal advance notice, we are still investigating what WAF mitigations are possible.\n\nSeveral of the disclosed vulnerabilities are not possible to block in WAF. We strongly recommend updating your applications so they are not purely reliant on WAF mitigations.\n\nCustomers on Pro, Business, or Enterprise plans should ensure that Managed Rules are enabled.\n\n#### Next.js adapters\n\nVinext: Vinext ↗︎ is a Vite plugin that reimplements the Next.js API surface. Vinext's latest release is not vulnerable to any of the disclosed CVEs. Vinext's architecture differs from stock Next.js in ways that sidestep the affected code paths. For example, it does not implement the PPR resume protocol, does not expose Pages Router data-route endpoints, and strips internal headers such as `x-nextjs-data` at request boundaries. As an extra layer of defense, we added a React `19.2.6` or later requirement when running `vinext init` (PR #1118 ↗︎, PR #1112 ↗︎) to prevent accidentally running a vulnerable version of React with Vinext.\n\nOpenNext on Cloudflare: OpenNext is an adapter that lets you deploy Next.js apps to the Cloudflare Workers platform. OpenNext itself is not directly vulnerable to the React denial-of-service CVE, but users must update the Next.js version in their application. The OpenNext team has updated the adapter to further harden against these vectors and released a new version of the Cloudflare adapter. Test fixtures and examples have been updated to use patched versions (PR #1255 ↗︎).\n\n#### Summary of disclosed vulnerabilities\n\n| Advisory | Severity | Issue | WAF status |\n| --- | --- | --- | --- |\n| `CVE-2026-23870` ↗︎ / `GHSA-8h8q-6873-q5fj` ↗︎ | High | Denial of service in Server Components | WAF rules in place: `2694f1610c0b471393b21aef102ec699`, `aaede80b4d414dc89c443cea61680354` Cloudflare is investigating additional managed WAF coverage |\n| `GHSA-267c-6grr-h53f` ↗︎ | High | Middleware bypass via segment-prefetch routes | Cloudflare is investigating if this can be safely and effectively mitigated by a managed WAF rule |\n| `GHSA-mg66-mrh9-m8jx` ↗︎ | High | Denial of service via connection exhaustion in Cache Components | Cloudflare is investigating if this can be safely and effectively mitigated by a managed WAF rule |\n| `GHSA-492v-c6pp-mqqv` ↗︎ | High | Middleware bypass via dynamic route parameter injection | Not possible to safely enable a managed WAF rule without potentially breaking application behavior |\n| `GHSA-c4j6-fc7j-m34r` ↗︎ | High | SSRF via WebSocket upgrades | Not possible to safely enable a managed WAF rule without potentially breaking application behavior |\n| `GHSA-36qx-fr4f-26g5` ↗︎ | High | Middleware bypass in Pages Router i18n | Custom WAF rule possible; global managed rule could potentially break application behavior |\n| `GHSA-ffhc-5mcf-pf4q` ↗︎ | Moderate | XSS via CSP nonces | Custom WAF rule possible; global managed rule could potentially break application behavior |\n| `GHSA-gx5p-jg67-6x7h` ↗︎ | Moderate | XSS in `beforeInteractive` scripts | Not possible to safely enable a managed WAF rule without potentially breaking application behavior |\n| `GHSA-h64f-5h5j-jqjh` ↗︎ | Moderate | Denial of service in Image Optimization API | Custom WAF rule possible; global managed rule could potentially break application behavior |\n| `GHSA-wfc6-r584-vfw7` ↗︎ | Moderate | Cache poisoning in RSC responses | Custom WAF rule possible; global managed rule could potentially break application behavior |\n| `GHSA-vfv6-92ff-j949` ↗︎ | Low | Cache poisoning via RSC cache-busting collisions | Not possible to safely enable a managed WAF rule without potentially breaking application behavior |\n| `GHSA-3g8h-86w9-wvmq` ↗︎ | Low | Middleware redirect cache poisoning | Custom WAF rule possible; global managed rule could potentially break application behavior |","summary":"Cloudflare's changelog lists a batch of newly disclosed flaws in React Server Components and Next.js, including denial of service, middleware bypass, SSRF, XSS and cache poisoning. The page says the flaws were disclosed with minimal notice and that patched versions exist, but it does not give a per-flaw exploit path for this entry.","severity":"unknown","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["cloudflare","cloudflare-workers","lab-disclosure","next.js","package","react","react-server-components","self-hosted"],"not_affected_if":["static-export","vinext"],"how_to_check":"- Run `npm ls next react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack` in the application and compare against the patched versions.\n- Check the Next.js version in `package.json` and the lockfile.","fix":"- Update Next.js to `15.5.16` or `16.2.5`.\n- Update `react-server-dom-webpack`, `react-server-dom-parcel` and `react-server-dom-turbopack` to `19.0.6`, `19.1.7` or `19.2.6` according to the React line in use.\n- Do not rely on WAF rules alone; the page says several of these flaws cannot be blocked in a WAF.","status":"open","published_at":"2026-05-07T00:00:00+00:00","first_seen_at":"2026-10-24T18:56:54+00:00","triaged_at":"2026-10-25T05:35:36+00:00","updated_at":"2026-10-25T05:35:36+00:00","category":"package","confidence":0.5,"triage":{"at":"2026-10-25T05:35:36Z","model":"claude-haiku-5-5","output":{"fix":"- Update Next.js to `15.5.16` or `16.2.5`.\n- Update `react-server-dom-webpack`, `react-server-dom-parcel` and `react-server-dom-turbopack` to `19.0.6`, `19.1.7` or `19.2.6` according to the React line in use.\n- Do not rely on WAF rules alone; the page says several of these flaws cannot be blocked in a WAF.","reach":"internet","title":"Next.js and React Server Components: many disclosed flaws, patches released","impact":"medium","summary":"Cloudflare's changelog lists a batch of newly disclosed flaws in React Server Components and Next.js, including denial of service, middleware bypass, SSRF, XSS and cache poisoning. The page says the flaws were disclosed with minimal notice and that patched versions exist, but it does not give a per-flaw exploit path for this entry.","category":"package","nicknames":[],"who_cares":["next.js","react","react-server-components","self-hosted","cloudflare-workers"],"confidence":0.5,"needs_auth":"unknown","worst_case":"unknown","analyst_note":"Pull the GitHub advisory GHSA-gx5p-jg67-6x7h and the React and Next.js security posts linked from the Cloudflare changelog to confirm per-flaw impact, versions and setup conditions.","how_to_check":"- Run `npm ls next react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack` in the application and compare against the patched versions.\n- Check the Next.js version in `package.json` and the lockfile.","needs_analyst":true,"not_affected_if":["static-export","vinext"],"who_is_affected":"Applications that run React Server Components or Next.js with the affected versions are exposed, and the page says the flaws cannot all be blocked at the WAF. Teams on Vinext report it is not vulnerable, and OpenNext on Cloudflare is not directly vulnerable but still requires the Next.js update in the application. Static or non-RSC front ends are not described as affected by this entry.","user_interaction":"unknown","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000956,"input_tokens":5803,"output_tokens":752,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-2025':227C,285C '-2026':231C,295C,317C,358C,668C '-23864':232C,296C '-23870':318C,359C,669C '-55184':228C,286C '1112':569C '1118':567C '1255':657C '15.5.16':209C '16.2.5':211C '19.0.6':203C '19.1.7':204C '19.2.6':206C,558C '2026':115C '267c':367C '2694f1610c0b471393b21aef102ec699':287C '6873':335C,363C,673C '6grr':368C '6x7h':16A,21A '7':114C '8h8q':334C,362C,672C 'aaede80b4d414dc89c443cea61680354':297C 'accident':572C 'across':165C 'action':254C,278C 'adapt':4A,98C,119C,475C,587C,629C,644C 'add':399C,555C 'addit':400C 'advanc':422C 'advisori':331C,356C,662C 'affect':137C,513C 'alreadi':233C 'announc':408C 'api':486C 'app':593C 'appli':312C 'applic':176C,395C,450C,622C 'architectur':503C 'attack':305C 'avail':184C 'batch':44B 'behavior':396C 'block':253C,298C,442C 'boundari':547C 'break':394C 'busi':463C 'bypass':60B,151C 'cach':64B,162C 'changelog':11A,41B,105C,106C,412C 'cloudflar':22B,24B,39B,112C,214C,260C,279C,289C,337C,397C,419C,583C,596C,643C 'cloudflare-work':23B 'code':514C 'compon':35B,52B,140C,224C,326C 'correspond':329C 'coverag':235C 'creat':381C 'cross':158C 'cross-sit':157C 'custom':257C,266C,460C 'cve':226C,230C,284C,294C,316C,357C,612C,667C 'cves':225C,389C,500C 'data':532C,544C 'data-rout':531C 'default':250C,277C 'defens':553C 'denial':56B,145C,241C,320C,609C,676C 'denial-of-servic':240C,319C,608C 'depend':179C 'deploy':217C,348C,591C 'descript':274C 'detect':302C 'differ':504C 'direct':603C 'disabl':288C 'disclos':47B,72B,130C,239C,436C,499C,660C 'disclosur':28B 'dom':190C,195C,201C 'dos':283C,293C 'effect':347C 'enabl':248C,473C 'endpoint':534C 'ensur':468C 'enterpris':465C 'entri':94B 'exampl':517C,648C 'exist':80B,300C 'exploit':90B 'expos':528C 'extra':550C 'fixtur':646C 'flaw':48B,70B,89B 'forgeri':156C 'framework':3A,97C,118C 'free':264C,269C 'generic':307C 'ghsa':13A,18A,333C,361C,366C,372C,671C 'ghsa-267c-6grr-h53f':365C 'ghsa-8h8q':332C,360C,670C 'ghsa-gx5p-jg67-6x7h':12A,17A 'ghsa-mg66-mrh9-m8jx':371C 'give':85B 'gx5p':14A,19A 'h53f':369C 'harden':632C 'header':538C 'high':354C,675C 'high-sever':353C 'host':38B 'id':276C 'immedi':180C 'implement':521C 'improv':110C 'includ':55B,144C,263C 'init':565C 'intern':537C 'investig':339C,427C 'issu':164C,664C 'jg67':15A,20A 'lab':27B 'lab-disclosur':26B 'later':560C 'latest':490C 'layer':551C 'let':589C 'level':170C 'list':42B 'm8jx':375C 'manag':261C,270C,280C,290C,383C,401C,470C 'may':113C 'mg66':373C 'middlewar':59B,148C 'minim':74B,421C 'mitig':5A,99C,120C,387C,430C,459C 'mrh9':374C 'multipl':126C 'must':615C 'new':107C,315C,639C 'newli':46B,238C 'next.js':9A,29B,54B,103C,124C,142C,208C,330C,474C,485C,507C,592C,618C 'nextj':543C 'notic':75B,423C 'opennext':581C,584C,599C,624C 'packag':30B 'page':67B,529C 'parcel':196C 'patch':78B,181C,654C 'path':91B,515C 'pattern':306C 'per':88B 'per-flaw':87B 'plan':265C,466C 'platform':598C 'plugin':481C 'poison':65B,163C 'possibl':379C,432C,440C 'potenti':393C 'ppr':523C 'pr':566C,568C,656C 'prevent':571C 'prior':221C 'pro':462C 'protect':213C 'protocol':525C 'provid':234C 'proxi':150C 'pure':455C 'q5fj':336C,364C,674C 'rang':167C 'react':7A,31B,33B,50B,101C,122C,133C,138C,186C,188C,193C,199C,222C,282C,292C,557C,578C,607C 'react-server-compon':32B 'react-server-dom-parcel':192C 'react-server-dom-turbopack':198C 'react-server-dom-webpack':187C 'recommend':173C,447C 'reimplement':483C 'releas':491C,637C 'reliant':456C 'request':155C,546C 'requir':561C 'respons':219C 'result':310C 'resum':524C 'rout':533C 'router':530C 'rule':216C,246C,273C,275C,301C,342C,385C,403C,405C,471C 'ruleset':262C,271C,272C,281C,291C 'run':563C,573C 'safe':345C 'say':68B 'script':160C 'se':678C 'secur':127C 'self':37B 'self-host':36B 'server':34B,51B,139C,153C,189C,194C,200C,223C,325C 'server-sid':152C 'servic':58B,147C,243C,322C,611C 'sever':169C,355C,433C,663C 'share':417C 'side':154C 'sidestep':511C 'site':159C 'ssrf':61B 'status':666C 'still':426C 'stock':506C 'strip':536C 'strong':172C,446C 'summari':658C 'surfac':487C 'team':134C,625C 'test':645C 'three':350C 'turbopack':202C 'under':304C 'updat':108C,174C,448C,616C,627C,651C 'use':258C,267C,653C 'user':614C 'vector':635C 'vercel':136C 'version':79B,182C,576C,619C,640C,655C 'vinext':476C,477C,488C,501C,564C,580C 'vite':480C 'vulner':10A,104C,125C,128C,244C,323C,415C,437C,494C,575C,604C,661C 'waf':1A,95C,116C,212C,215C,341C,384C,402C,411C,429C,444C,458C,665C 'way':509C 'webpack':191C 'whether':340C 'worker':25B,597C 'x':542C 'x-nextjs-data':541C 'xss':62B","nicknames":[],"mitigations":[],"who_affected":"Applications that run React Server Components or Next.js with the affected versions are exposed, and the page says the flaws cannot all be blocked at the WAF. Teams on Vinext report it is not vulnerable, and OpenNext on Cloudflare is not directly vulnerable but still requires the Next.js update in the application. Static or non-RSC front ends are not described as affected by this entry.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-05-07T00:00:00+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"lab","external_id":"https://developers.cloudflare.com/changelog/post/2026-05-06-react-nextjs-vulnerabilities/#GHSA-gx5p-jg67-6x7h","url":"https://developers.cloudflare.com/changelog/post/2026-05-06-react-nextjs-vulnerabilities/","severity":null,"published_at":"2026-05-07T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-24T18:56:54+00:00","fetched_at":"2026-10-24T18:56:54+00:00","note":"Cloudflare: WAF and framework adapter mitigations for React and Next.js vulnerabilities · Changelog"}],"documents":[{"id":2906,"url":"https://developers.cloudflare.com/changelog/post/2026-05-06-react-nextjs-vulnerabilities/","title":"Cloudflare: WAF and framework adapter mitigations for React and Next.js vulnerabilities · Changelog","kind":"advisory","source":"lab","text":"WAF and framework adapter mitigations for React and Next.js vulnerabilities · Changelog\n\n# Changelog\n\nNew updates and improvements at Cloudflare.\n\nMay 7, 2026\n\n## WAF and framework adapter mitigations for React and Next.js vulnerabilities\n\nMultiple security vulnerabilities were disclosed by the React team and Vercel affecting React Server Components and Next.js. These include denial of service, middleware and proxy bypass, server-side request forgery, cross-site scripting, and cache poisoning issues across a range of severity levels.\n\nWe strongly recommend updating your application and its dependencies immediately. Patched versions are available for React (`react-server-dom-webpack`, `react-server-dom-parcel`, and `react-server-dom-turbopack` `19.0.6`, `19.1.7`, and `19.2.6`) and Next.js (`15.5.16` and `16.2.5`).\n\n#### WAF protections\n\nCloudflare WAF rules deployed in response to prior React Server Component CVEs (`CVE-2025-55184` ↗︎ and `CVE-2026-23864` ↗︎) already provide coverage for the newly disclosed denial-of-service vulnerabilities. These rules are enabled by default with a Block action for all customers using the Cloudflare Managed Ruleset, including Free plan customers using the Free Managed Ruleset.\n\n| Ruleset | Rule description | Rule ID | Default action |\n| --- | --- | --- | --- |\n| Cloudflare Managed Ruleset | React - DoS - `CVE-2025-55184` ↗︎ | `2694f1610c0b471393b21aef102ec699` | Disabled |\n| Cloudflare Managed Ruleset | React - DoS - `CVE-2026-23864` ↗︎ | `aaede80b4d414dc89c443cea61680354` | Block |\n\nThe existing rules detect the underlying attack patterns generically. As a result, they apply to the new `CVE-2026-23870` ↗︎ denial-of-service vulnerability in Server Components and the corresponding Next.js advisory `GHSA-8h8q-6873-q5fj` ↗︎.\n\nCloudflare is investigating whether WAF rules can be safely and effectively deployed for three of the high-severity advisories: `CVE-2026-23870` ↗︎ / `GHSA-8h8q-6873-q5fj` ↗︎, `GHSA-267c-6grr-h53f` ↗︎, and `GHSA-mg66-mrh9-m8jx` ↗︎. If it is possible to create a managed WAF rule that mitigates these CVEs and does not potentially break application behavior, Cloudflare will add additional managed WAF rules. These rules will be announced through the WAF changelog. Because these vulnerabilities were shared with Cloudflare with minimal advance notice, we are still investigating what WAF mitigations are possible.\n\nSeveral of the disclosed vulnerabilities are not possible to block in WAF. We strongly recommend updating your applications so they are not purely reliant on WAF mitigations.\n\nCustomers on Pro, Business, or Enterprise plans should ensure that Managed Rules are enabled.\n\n#### Next.js adapters\n\nVinext: Vinext ↗︎ is a Vite plugin that reimplements the Next.js API surface. Vinext's latest release is not vulnerable to any of the disclosed CVEs. Vinext's architecture differs from stock Next.js in ways that sidestep the affected code paths. For example, it does not implement the PPR resume protocol, does not expose Pages Router data-route endpoints, and strips internal headers such as `x-nextjs-data` at request boundaries. As an extra layer of defense, we added a React `19.2.6` or later requirement when running `vinext init` (PR #1118 ↗︎, PR #1112 ↗︎) to prevent accidentally running a vulnerable version of React with Vinext.\n\nOpenNext on Cloudflare: OpenNext is an adapter that lets you deploy Next.js apps to the Cloudflare Workers platform. OpenNext itself is not directly vulnerable to the React denial-of-service CVE, but users must update the Next.js version in their application. The OpenNext team has updated the adapter to further harden against these vectors and released a new version of the Cloudflare adapter. Test fixtures and examples have been updated to use patched versions (PR #1255 ↗︎).\n\n#### Summary of disclosed vulnerabilities\n\n| Advisory | Severity | Issue | WAF status |\n| --- | --- | --- | --- |\n| `CVE-2026-23870` ↗︎ / `GHSA-8h8q-6873-q5fj` ↗︎ | High | Denial of service in Server Components | WAF rules in place: `2694f1610c0b471393b21aef102ec699`, `aaede80b4d414dc89c443cea61680354` Cloudflare is investigating additional managed WAF coverage |\n| `GHSA-267c-6grr-h53f` ↗︎ | High | Middleware bypass via segment-prefetch routes | Cloudflare is investigating if this can be safely and effectively mitigated by a managed WAF rule |\n| `GHSA-mg66-mrh9-m8jx` ↗︎ | High | Denial of service via connection exhaustion in Cache Components | Cloudflare is investigating if this can be safely and effectively mitigated by a managed WAF rule |\n| `GHSA-492v-c6pp-mqqv` ↗︎ | High | Middleware bypass via dynamic route parameter injection | Not possible to safely enable a managed WAF rule without potentially breaking application behavior |\n| `GHSA-c4j6-fc7j-m34r` ↗︎ | High | SSRF via WebSocket upgrades | Not possible to safely enable a managed WAF rule without potentially breaking application behavior |\n| `GHSA-36qx-fr4f-26g5` ↗︎ | High | Middleware bypass in Pages Router i18n | Custom WAF rule possible; global managed rule could potentially break application behavior |\n| `GHSA-ffhc-5mcf-pf4q` ↗︎ | Moderate | XSS via CSP nonces | Custom WAF rule possible; global managed rule could potentially break application behavior |\n| `GHSA-gx5p-jg67-6x7h` ↗︎ | Moderate | XSS in `beforeInteractive` scripts | Not possible to safely enable a managed WAF rule without potentially breaking application behavior |\n| `GHSA-h64f-5h5j-jqjh` ↗︎ | Moderate | Denial of service in Image Optimization API | Custom WAF rule possible; global managed rule could potentially break application behavior |\n| `GHSA-wfc6-r584-vfw7` ↗︎ | Moderate | Cache poisoning in RSC responses | Custom WAF rule possible; global managed rule could potentially break application behavior |\n| `GHSA-vfv6-92ff-j949` ↗︎ | Low | Cache poisoning via RSC cache-busting collisions | Not possible to safely enable a managed WAF rule without potentially breaking application behavior |\n| `GHSA-3g8h-86w9-wvmq` ↗︎ | Low | Middleware redirect cache poisoning | Custom WAF rule possible; global managed rule could potentially break application behavior |","published_at":"2026-05-07T00:00:00+00:00","relation":"advisory","confidence":null,"note":null}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}