Negative-Space Security: How Missing Browser Headers Led to CVE-2026–49993 in Nuxt
Nuxt's webpack and rspack development servers tried to enforce a same-origin policy using browser request metadata, but treated the complete absence of Sec-Fetch-Site, Origin and Referer as allowed. A malicious page could therefore load the development bundle cross-origin and read compiled module source through the global webpack chunk structure.
Published on medium.com
Cybersecurity
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context: a development server as a security boundary
Nuxt's development server is usually treated as local tooling, but the browser places an unusual security boundary around it. When a developer runs the server bound to a non-loopback address, it becomes reachable from the local network, and a malicious website the developer later visits may try to make the browser interact with services on the developer's machine or LAN. That matters more for development servers than for ordinary sites because their generated JavaScript can contain information the developer never intended to expose to another origin.
Nuxt had already dealt with variants of this problem before CVE-2026-49993. An earlier vulnerability showed that webpack/rspack development output could be loaded cross-origin by a classic <script> element. A later fix attempted to enforce a same-origin policy using browser request metadata. The vulnerability described here, CVE-2026-49993 / GHSA-x6qj-4h56-5rj5, is an incomplete-fix bypass of that later protection, affecting Nuxt's webpack and rspack development servers. The advisory assigns it CVSS 4.0 5.9 (Moderate) with high confidentiality impact, and credits Berkan SAL (@Uhudsavasindankacanokcu2) as the reporter through the Vercel Open Source HackerOne program.

The theme of the research is what the author calls negative-space security: do not only test what happens when security metadata contains attacker-controlled values, but test what happens when the metadata disappears entirely.
Setup: what the earlier fix assumed
No special accounts or tooling are described. The relevant precondition is a development server started so that it is reachable beyond loopback, for example:
nuxt dev --host [redacted]
The earlier remediation enforced a same-origin policy using three pieces of browser request metadata:
Sec-Fetch-Site
Origin
Referer
Conceptually, the logic looked roughly like this:
if Sec-Fetch-Site exists:
allow only same-origin or direct navigation
otherwise:
inspect Origin or Referer
if Origin/Referer exists:
compare its host with Host
otherwise:
allow
The final otherwise: allow branch was deliberate. The implementation could not simply reject every request lacking browser security headers, because legitimate requests may come from command-line clients, HMR machinery, or direct navigation. Absence was treated as a compatibility condition, and that compatibility created the interesting security state.
Finding it: the absence vector
At first glance the three signals feel reasonably redundant: if one disappears, perhaps another identifies where the request came from. The question the author asked instead was whether an attacker can reach a state in which every check loses its evidence at the same time.
In this case, yes. The Nuxt advisory documents three browser behaviours that combine to create exactly that state:
Sec-Fetch-Sitemay be absent when targeting an HTTP resource on a non-loopback, non-potentially-trustworthy address.- A classic non-CORS
<script>request does not necessarily carryOrigin. - The referring page can suppress
Refererusing a no-referrer policy.
Individually none of these is surprising. Together they produce:
Sec-Fetch-Site: <absent>
Origin: <absent>
Referer: <absent>
The important property is not a malformed header but the absence vector:
(None, None, None)
and the previous protection interpreted that state as allowed. The bypass therefore lived in the control flow surrounding the security evidence rather than inside the validation of that evidence. There was no malicious value required; the interesting input was undefined.
This is distinct from spoofing a header. A common review mindset asks which attacker-controlled value makes a condition return true, for example:
if (origin === trustedOrigin) {
allow()
}
and naturally tests unusual values, encoding differences, parser inconsistencies, null bytes, capitalisation, alternate URLs and normalisation problems. But a different structure:
if (securitySignal) {
return validate(securitySignal)
}
return true
fails on the missing input rather than on a crafted one.
Exploitation
Step 1: suppress the referrer on the attacker page
The request shape can be produced with an ordinary cross-origin script load using a suppressed referrer. The page declares a no-referrer policy:
<meta name="referrer" content="no-referrer">
This removes Referer from requests the page initiates.
Step 2: load the development bundle cross-origin
The attacker page then loads the victim's generated bundle with a classic script element, again with a no-referrer policy:
<script
src="http://VICTIM_LAN_IP:3000/_nuxt/app.js"
referrerpolicy="no-referrer"></script>
Because this is a classic non-CORS script request, it does not necessarily carry Origin, and because the target is an HTTP resource on a non-loopback, non-potentially-trustworthy address, Sec-Fetch-Site may be absent. The official advisory describes how such a request can reach a Nuxt development server while lacking all three signals used by the protection, so the server's fallback treats it as allowed and serves the bundle.
Step 3: inspect the compiled modules
Once the generated webpack bundle executes in the attacker's page, compiled module functions can be inspected through the global webpack chunk structure, including via function stringification. The result is a confidentiality issue: built source can become visible to a malicious page under the affected network and browser conditions.
The attack specifically concerned webpack/rspack development servers reachable through a non-loopback bind such as --host. Nuxt's default Vite builder was not affected.
Root cause
The protection inferred provenance from the presence of any one of three signals, and treated the total absence of all three as a compatibility case that should be allowed. Because each signal can legitimately be missing in a browser-generated request, an attacker can arrange for all three to vanish at once, and the control then grants access rather than denying it. The existing defence did not stop this because it validated the content of the evidence but never asked what should happen when the evidence itself is gone; the fail-open branch was intentional for command-line clients, HMR machinery and direct navigation, and the browser can reach the same branch.
Impact
Under the affected network and browser conditions, a malicious page visited by a developer can load the development server's generated webpack bundle across origins and read compiled module functions, exposing built source that the developer never intended to expose to another origin. The advisory rates this CVSS 4.0 5.9 (Moderate) with high confidentiality impact. The issue is limited to webpack/rspack development servers reachable through a non-loopback bind; the default Vite builder is not affected.
Fix
The final fix did not add a fourth header. It changed what absence means. The patched logic essentially says:
const initiator = origin || referer
if (!secFetchSite && !initiator) {
return isLoopbackHost(host)
}
Nuxt's PR #35200 changed the missing-all-signals state so that it is accepted only when the development server is loopback-bound. A request with:
Sec-Fetch-Site = absent
Origin = absent
Referer = absent
Host = localhost
can remain compatible, but:
Sec-Fetch-Site = absent
Origin = absent
Referer = absent
Host = 192.168.x.x
is rejected. The patch also added explicit tests for localhost, [redacted], ::1, LAN addresses, missing Host, and the no-security-signals condition itself. The affected branches were fixed in webpack/rspack builder versions 4.4.7 and 3.21.7.
This is a better model because it does not attempt to recover provenance after all provenance signals have disappeared; it asks whether the remaining environment is intrinsically constrained enough to tolerate ambiguity. In the vulnerable logic the answer to "what does the system believe when it has no evidence left?" was effectively allow; after the fix, uncertainty on a network-reachable development server becomes deny.
Variants to test
The general method is to enumerate four states for every security signal: expected value, explicitly hostile value, malformed or ambiguous value, and missing value. Then look at combinations, including A missing, B good, C good, A missing, B missing, C good, and A missing, B missing, C missing. Do not only simulate these by deleting headers in a proxy, which can create impossible requests; the stronger question is whether the real platform can legitimately generate the state.
- Reverse proxies. Applications frequently trust
X-Forwarded-For,X-Forwarded-Host,X-Forwarded-ProtoandForwarded. Besides forging them, test what happens when a proxy selectively removes them. A positive result is the backend falling back to a more trusted interpretation when the header is absent. - Authentication middleware. Consider
Authorizationheaders, session cookies, and identity injected by an upstream proxy. A positive result is the service quietly switching into a legacy authentication mode, rather than rejecting the request, when the upstream identity header disappears. - Cloud infrastructure. Security decisions may depend on instance identity, metadata headers, service-account claims, mTLS identity or network source. A positive result is a decision that becomes more permissive when one of these is missing.
- Webhooks. A receiver might support
signature present -> validate signatureandsignature absent -> legacy unsigned webhook. A positive result is the second branch accepting a request that the signature check would have rejected; this is often more interesting than breaking the signature algorithm. - AI agents and tool execution. A tool call may carry user identity, conversation identity, approval state, provenance and a policy decision. A positive result is the executor treating a missing security context as an unrestricted context when provenance fails to propagate between agents.
Incomplete fixes are especially good targets. A patch effectively states which dangerous state the maintainers believe exists and which check they believe prevents it, which gives two questions: can the dangerous state exist without the check, and can the check disappear while the dangerous state remains dangerous? Look at assumptions introduced by the fix, compatibility fallbacks, parser boundaries, missing-value behaviour, alternate protocols, alternate browser primitives, different network contexts, and state combinations not represented by regression tests. The goal is to understand the invariant the patch is trying to restore and then determine whether it actually holds.
The broader lesson is that security systems increasingly decide from ambient context: headers, cookies, browser metadata, proxy metadata, identity claims, network properties and execution provenance. Developers think about those signals when they are present; the useful question is what the system believes when it has no evidence left. Occasionally, the empty state is the most privileged input of all.
References
The vulnerability is publicly disclosed as CVE-2026-49993 / GHSA-x6qj-4h56-5rj5. GitHub's Nuxt advisory credits Berkan SAL (@Uhudsavasindankacanokcu2) as a reporter through the Vercel Open Source HackerOne program and documents the affected versions, exploitation conditions, remediation and patch. The issue was an incomplete fix for GHSA-6m52-m754-pw2g / CVE-2026-45670, whose earlier remediation introduced the Origin / Referer fallback analysed here.
What happened, in plain words
A developer called Berkan SAL found a security hole in Nuxt, a popular tool for building websites. The hole let a malicious website read the generated development bundle from a developer's machine while that developer was working on a project. The problem was not a strange or cleverly crafted input. It was the opposite: the attacker sent a request with certain pieces of information simply left out, and the software treated "no information" as "trusted".
The bug is publicly known as CVE-2026-49993 (a CVE is a public catalogue number for a security flaw) and GHSA-x6qj-4h56-5rj5 (a similar catalogue number used by GitHub). GitHub credits Berkan SAL (@Uhudsavasindankacanokcu2) for reporting it through the Vercel Open Source HackerOne program, a scheme where people report bugs in open-source software. The advisory rates it CVSS 4.0 5.9 (Moderate), with high impact on confidentiality, meaning the main harm is that secret information can be read.

The author calls the idea behind the research negative-space security: instead of only testing what happens when security information contains hostile values, also test what happens when that information disappears completely.
The problem Nuxt was trying to solve
What Nuxt is, and what a development server is
Nuxt is a framework: a set of tools and ready-made pieces that help people build websites. While someone is building a site, they run a development server, a small web server on their own computer that serves the site so they can look at it in a browser and see changes as they make them. Think of it as a rehearsal stage in a theatre: not the public performance, but a working space where the play is put together.
Normally that rehearsal stage is only reachable from the same computer. But a developer can start it so that other devices on the same network (their phone, a colleague's laptop, a device on the office Wi-Fi) can open it too. The command for that is:
nuxt dev --host [redacted]
Line by line:
nuxtis the program being run.devtells it to start the development server.--host [redacted]is an option meaning "listen on every network address this computer has", not just the internal one that only the machine itself can reach. In everyday terms: instead of keeping the rehearsal behind a locked door, the developer props the door open to the whole corridor.
Why that matters
Once the development server is reachable from the local network, a website the developer later visits in the same browser can try to make that browser talk to the development server. The browser is the go-between: the malicious page says "fetch this address", and the browser does it from the developer's machine, which is inside the network.
This is more dangerous for development servers than for ordinary public websites because the JavaScript they generate can contain information the developer never meant to show to another website. JavaScript is the programming language browsers run; the files a development server produces are the working version of the site's code, and working versions often contain more than the finished public one.
The earlier fix
Nuxt had already dealt with versions of this problem before CVE-2026-49993. An earlier vulnerability showed that the files produced by the webpack and rspack builders (two tools that package a site's code into files a browser can load) could be pulled in from another website using a classic <script> element. A <script> element is the ordinary HTML tag that tells a browser "load this file and run it".
A later fix tried to enforce a same-origin policy. "Origin" here means the combination of protocol, host and port that identifies where a page came from. A same-origin policy is the rule that a page may only talk to its own origin, not to others. Think of it as a building where your key only opens your own floor.
The fix used three pieces of information that browsers attach to requests, called headers. Headers are small labelled notes sent alongside every web request and response, like the label on a parcel that says where it came from and what it contains. The three were:
Sec-Fetch-Site
Origin
Referer
Sec-Fetch-Siteis a header in which the browser states the relationship between the page making the request and the address being requested (for example, same site, or a different site).Originis a header stating which origin the request comes from.Referer(yes, historically misspelled) is a header stating which page the request was started from.
Conceptually, the logic looked roughly like this:
if Sec-Fetch-Site exists:
allow only same-origin or direct navigation
In plain words: if the browser says where the request is coming from, only let it through when it is the same site, or when the user typed the address directly (direct navigation means opening an address in the address bar rather than a page pulling it in).
otherwise:
inspect Origin or Referer
if Origin/Referer exists:
compare its host with Host
otherwise:
allow
In plain words: if Sec-Fetch-Site is missing, look at Origin or Referer instead. If one of those is present, compare the host it names (the machine part of an address, like example.com) with the Host header, which says which server the request was addressed to. If neither Origin nor Referer is present either, let the request through.
That last line, otherwise: allow, was deliberate. The developers could not simply reject every request that lacked browser security headers, because some legitimate requests do not come from a browser page at all: command-line clients (programs run from a terminal), the machinery that powers hot module replacement (HMR, the feature that updates the page live as you edit code), and direct navigation. So "no information" was treated as a compatibility case, a way of not breaking things.
And that compatibility is exactly where the security problem lived.
Finding it: the absence vector
At first glance the three signals feel reasonably redundant: if one disappears, perhaps another still says where the request came from. The author asked a different question: can an attacker reach a state in which every check loses its evidence at the same time?
In this case, yes. The Nuxt advisory documents three browser behaviours that combine to create exactly that state:
Sec-Fetch-Sitemay be absent when targeting an HTTP resource on a non-loopback, non-potentially-trustworthy address. In plain words: when the address being requested is a plainhttp://address on a machine that is not the computer itself (not "loopback", the special internal address a machine uses to talk to itself), the browser may simply not send this header. "Potentially trustworthy" is a browser notion of addresses it considers secure enough for certain features; plain HTTP on a network address is not one of them.- A classic non-CORS
<script>request does not necessarily carryOrigin. CORS (Cross-Origin Resource Sharing) is a set of rules by which a browser asks a server for permission before letting one site read another site's response. A classic script load is the old-style way of including a script, which predates those rules and does not always sendOrigin. - The referring page can suppress
Refererusing a no-referrer policy. A page can tell the browser "do not tell anyone where this request came from", and the browser obeys.
Individually none of these is surprising. Together they produce:
Sec-Fetch-Site: <absent>
Origin: <absent>
Referer: <absent>
Line by line: the first line says the browser did not send Sec-Fetch-Site; the second says it did not send Origin; the third says it did not send Referer. All three notes on the parcel are blank.
The important property is not a malformed header but the absence vector:
(None, None, None)
A vector here just means a list of values in a fixed order. None means "nothing there". So this is simply the state "all three are missing", written compactly. The previous protection interpreted that state as allowed.
The bypass therefore lived in the control flow surrounding the security evidence rather than inside the validation of that evidence. Control flow means the order in which a program takes decisions: which check it runs, and what it does when a check cannot run at all. Validation means checking whether a value is acceptable. The point is that the checks themselves were fine; the problem was what the program did when there was nothing to check.
There was no malicious value required; the interesting input was undefined. In programming, undefined means "this has no value at all", as opposed to a value that happens to be empty or wrong.
This is distinct from spoofing a header. Spoofing means sending a fake value to pretend to be something you are not, like writing a false return address on an envelope. A common review mindset asks which attacker-controlled value makes a condition return true, for example:
if (origin === trustedOrigin) {
allow()
}
Line by line: if (origin === trustedOrigin) asks "is the origin exactly equal to the one we trust?". If yes, allow() lets the request through. A tester faced with this naturally tries unusual values, encoding differences, parser inconsistencies, null bytes, capitalisation, alternate URLs and normalisation problems: all ways of writing something that looks different but is treated as the trusted value.
But a different structure:
if (securitySignal) {
return validate(securitySignal)
}
return true
Line by line: the first block says "if there is a security signal, hand it to validate and return whatever that says". The second block says "if we got here, there was no signal, so return true", and true means "allow". This structure fails on the missing input rather than on a crafted one. No clever value is needed; the attacker just has to make sure the signal is not there.
Exploitation
Step 1: suppress the referrer on the attacker page
The request shape can be produced with an ordinary cross-origin script load using a suppressed referrer. The page declares a no-referrer policy:
<meta name="referrer" content="no-referrer">
Line by line: this is an HTML tag placed in the head of a page. name="referrer" says the setting being changed is about the referrer (the page that started a request). content="no-referrer" says the value is "send no referrer at all". The effect is that this page's requests go out without a Referer header. Why do this? Because the earlier fix falls back to Referer when Sec-Fetch-Site is missing, so removing Referer removes one of the two remaining pieces of evidence.
Step 2: load the development bundle cross-origin
The attacker page then loads the victim's generated bundle with a classic script element, again with a no-referrer policy:
<script
src="http://VICTIM_LAN_IP:3000/_nuxt/app.js"
referrerpolicy="no-referrer"></script>
Line by line:
<scriptopens an HTML script tag.src="http://VICTIM_LAN_IP:3000/_nuxt/app.js"is the address of the file to load.VICTIM_LAN_IPstands for the victim's address on the local network,3000is the port (the numbered door on that machine where the development server listens), and/_nuxt/app.jsis the path of a generated JavaScript file. This is a cross-origin load: the attacker's page and this address are different origins.referrerpolicy="no-referrer"repeats the instruction on this specific tag: send no referrer with this request.></script>closes the tag.
Why do this? Because this is a classic non-CORS script request, it does not necessarily carry Origin, and because the target is an HTTP resource on a non-loopback, non-potentially-trustworthy address, Sec-Fetch-Site may be absent. The official advisory describes how such a request can reach a Nuxt development server while lacking all three signals used by the protection, so the server's fallback treats it as allowed and serves the bundle. In other words, the attacker arranges for all three notes on the parcel to be blank, and the server, seeing no reason to refuse, hands over the file.
Step 3: inspect the compiled modules
Once the generated webpack bundle executes in the attacker's page, compiled module functions can be inspected through the global webpack chunk structure, including via function stringification. In plain words: the downloaded file is not just a static text file; it is a program that runs in the attacker's page. Webpack organises code into chunks and modules and keeps a global structure (a shared, page-wide object) listing them. From inside the page, the attacker's code can walk that structure and look at the functions it contains. Function stringification means asking a function to print its own source code as text, which browsers allow. So the attacker does not merely receive the file; they can read the code inside it.
The result is a confidentiality issue: built source can become visible to a malicious page under the affected network and browser conditions. Confidentiality is one of the three classic goals of security (the others being integrity, keeping data unaltered, and availability, keeping services reachable); a confidentiality issue means information that should be secret can be read by someone who should not see it.
The attack specifically concerned webpack/rspack development servers reachable through a non-loopback bind such as --host. Nuxt's default Vite builder was not affected. Vite is a different build tool, and Nuxt uses it by default; the flaw was in the code paths used by the webpack and rspack builders.
Root cause
The protection inferred provenance from the presence of any one of three signals, and treated the total absence of all three as a compatibility case that should be allowed. Provenance means where something came from, its origin story. Because each signal can legitimately be missing in a browser-generated request, an attacker can arrange for all three to vanish at once, and the control then grants access rather than denying it.
The existing defence did not stop this because it validated the content of the evidence but never asked what should happen when the evidence itself is gone. The fail-open branch was intentional for command-line clients, HMR machinery and direct navigation, and the browser can reach the same branch. Fail-open means that when something goes wrong or is missing, the system lets the action through instead of blocking it; the opposite, fail-closed, blocks when in doubt. A door that unlocks itself when its card reader breaks is fail-open.
Impact
Under the affected network and browser conditions, a malicious page visited by a developer can load the development server's generated webpack bundle across origins and read compiled module functions, exposing built source that the developer never intended to expose to another origin. The advisory rates this CVSS 4.0 5.9 (Moderate) with high confidentiality impact. CVSS is a standard scoring system for the severity of a vulnerability; 5.9 out of 10 is labelled Moderate.
The issue is limited to webpack/rspack development servers reachable through a non-loopback bind; the default Vite builder is not affected.
Fix
The final fix did not add a fourth header. It changed what absence means. The patched logic essentially says:
const initiator = origin || referer
Line by line: const initiator = ... creates a named value called initiator, meaning "who started this request". origin || referer means "use origin if it has a value; otherwise use referer". The || operator in JavaScript returns the first side if it is truthy (has a usable value) and the second side otherwise. So initiator is whichever of the two pieces of evidence is available, or nothing if neither is.
if (!secFetchSite && !initiator) {
return isLoopbackHost(host)
}
Line by line: if (!secFetchSite && !initiator) asks "is Sec-Fetch-Site missing AND is there no initiator either?". The ! means "not", and && means "and both must be true". If that is the case, return isLoopbackHost(host) hands back the answer to a different question: is the Host header naming the loopback address, the machine's own internal address? If yes, the request is allowed; if no, it is refused.
Nuxt's PR #35200 changed the missing-all-signals state so that it is accepted only when the development server is loopback-bound. A PR (pull request) is a proposed change to a shared codebase, which others review before it is merged. A request with:
Sec-Fetch-Site = absent
Origin = absent
Referer = absent
Host = localhost
can remain compatible. Line by line: all three pieces of evidence are missing, but the request was addressed to localhost, the name a computer uses for itself. Only the machine itself could have sent that, so there is no network attacker to worry about, and the old compatibility behaviour is safe.
But:
Sec-Fetch-Site = absent
Origin = absent
Referer = absent
Host = 192.168.x.x
is rejected. Line by line: the same three missing pieces, but this time the request was addressed to a local network address (the 192.168.x.x pattern is the usual shape of a home or office network address). That means someone else on the network could be asking, so the request is refused.
The patch also added explicit tests for localhost, [redacted], ::1, LAN addresses, missing Host, and the no-security-signals condition itself. [redacted] and ::1 are the numeric forms of the loopback address (the second is the newer IPv6 form). Tests here are automated checks that the code behaves as intended, so future changes cannot quietly undo the fix.
The affected branches were fixed in webpack/rspack builder versions 4.4.7 and 3.21.7. A version is a numbered release of software.
This is a better model because it does not attempt to recover provenance after all provenance signals have disappeared; it asks whether the remaining environment is intrinsically constrained enough to tolerate ambiguity. In the vulnerable logic the answer to "what does the system believe when it has no evidence left?" was effectively allow; after the fix, uncertainty on a network-reachable development server becomes deny.
Variants to test
The general method is to enumerate four states for every security signal: expected value, explicitly hostile value, malformed or ambiguous value, and missing value. Then look at combinations, including A missing, B good, C good, A missing, B missing, C good, and A missing, B missing, C missing. Do not only simulate these by deleting headers in a proxy, which can create impossible requests; the stronger question is whether the real platform can legitimately generate the state. A proxy is an intermediary that forwards requests on someone's behalf; deleting a header there proves only that the server reacts to a header being gone, not that a real browser would ever send such a request.
- Reverse proxies. Applications frequently trust
X-Forwarded-For,X-Forwarded-Host,X-Forwarded-ProtoandForwarded. These are headers a proxy adds to record details about the original request, such as the client's address, the host asked for, and whether the original connection was HTTP or HTTPS. Besides forging them, test what happens when a proxy selectively removes them. A positive result is the backend falling back to a more trusted interpretation when the header is absent. - Authentication middleware. Consider
Authorizationheaders, session cookies, and identity injected by an upstream proxy. Authentication is proving who you are; middleware is code that runs in front of the main application and can inspect or modify requests. A session cookie is a small piece of data the browser stores and sends back with each request so the server recognises a logged-in user; think of a wristband given at the door of an event. A positive result is the service quietly switching into a legacy authentication mode, rather than rejecting the request, when the upstream identity header disappears. - Cloud infrastructure. Security decisions may depend on instance identity, metadata headers, service-account claims, mTLS identity or network source. An instance is a virtual machine rented from a cloud provider; mTLS (mutual TLS) is a setup where both sides of a connection present certificates to prove who they are, like two people showing ID to each other rather than only one. A positive result is a decision that becomes more permissive when one of these is missing.
- Webhooks. A receiver might support
signature present -> validate signatureandsignature absent -> legacy unsigned webhook. A webhook is an automatic message one service sends to another when something happens, and a signature is a cryptographic stamp proving the message really came from the expected sender. A positive result is the second branch accepting a request that the signature check would have rejected; this is often more interesting than breaking the signature algorithm. - AI agents and tool execution. A tool call may carry user identity, conversation identity, approval state, provenance and a policy decision. An AI agent is a program that uses a language model to decide and carry out actions, often by calling tools such as search or file access. A positive result is the executor treating a missing security context as an unrestricted context when provenance fails to propagate between agents.
Incomplete fixes are especially good targets. A patch effectively states which dangerous state the maintainers believe exists and which check they believe prevents it, which gives two questions: can the dangerous state exist without the check, and can the check disappear while the dangerous state remains dangerous? Look at assumptions introduced by the fix, compatibility fallbacks, parser boundaries, missing-value behaviour, alternate protocols, alternate browser primitives, different network contexts, and state combinations not represented by regression tests. A regression test is a test written to make sure a fixed bug stays fixed.
The goal is to understand the invariant the patch is trying to restore and then determine whether it actually holds. An invariant is a rule that is supposed to remain true no matter what.
The broader lesson is that security systems increasingly decide from ambient context: headers, cookies, browser metadata, proxy metadata, identity claims, network properties and execution provenance. Developers think about those signals when they are present; the useful question is what the system believes when it has no evidence left. Occasionally, the empty state is the most privileged input of all.
References
The vulnerability is publicly disclosed as CVE-2026-49993 / GHSA-x6qj-4h56-5rj5. GitHub's Nuxt advisory credits Berkan SAL (@Uhudsavasindankacanokcu2) as a reporter through the Vercel Open Source HackerOne program and documents the affected versions, exploitation conditions, remediation and patch. The issue was an incomplete fix for GHSA-6m52-m754-pw2g / CVE-2026-45670, whose earlier remediation introduced the Origin / Referer fallback analysed here.
Glossary
- Absence vector: a compact way of writing that several pieces of information are all missing, for example
(None, None, None). - AI agent: a program that uses a language model to decide and carry out actions, often by calling tools.
- Authentication: the process of proving who you are.
- Authorization header: a request header carrying credentials that identify the caller.
- Bundle: a file produced by a build tool that packages a site's code for the browser.
- CORS (Cross-Origin Resource Sharing): browser rules under which one site must ask a server for permission before reading its responses.
- Control flow: the order in which a program makes decisions and which branch it takes.
- Cookie: a small piece of data a browser stores for a site and sends back with later requests.
- Cross-origin: involving two different origins, meaning different combinations of protocol, host and port.
- CVSS: a standard scoring system for the severity of a vulnerability.
- CVE: a public catalogue number for a security flaw.
- Development server: a small web server run on a developer's own machine to preview a site while building it.
- Fail-open: a design in which a missing or broken check lets the action through instead of blocking it.
- Fail-closed: a design in which a missing or broken check blocks the action.
- Function stringification: asking a function to print its own source code as text.
- GHSA: a catalogue number for security advisories used by GitHub.
- Header: a small labelled note sent alongside a web request or response.
- HMR (hot module replacement): a development feature that updates a page live as code is edited.
- Host header: the header stating which server a request was addressed to.
- Instance: a virtual machine rented from a cloud provider.
- Invariant: a rule that is supposed to remain true no matter what.
- JavaScript: the programming language browsers run.
- LAN: local area network, the network inside a home or office.
- Loopback: the special internal address a machine uses to talk to itself, such as
localhost,[redacted]or::1. - Middleware: code that runs in front of the main application and can inspect or modify requests.
- mTLS (mutual TLS): a setup where both sides of a connection prove their identity with certificates.
- Negative-space security: testing what a system does when the security information it relies on is missing, rather than only when it is hostile.
- Origin: the combination of protocol, host and port that identifies where a page came from.
- Origin header: a request header stating which origin a request comes from.
- Port: the numbered door on a machine where a particular service listens.
- PR (pull request): a proposed change to a shared codebase, reviewed before being merged.
- Provenance: where something came from.
- Proxy: an intermediary that forwards requests on someone's behalf.
- Referer header: a request header stating which page started a request.
- Regression test: a test written to make sure a fixed bug stays fixed.
- Reverse proxy: a proxy that sits in front of a server and forwards incoming requests to it.
- rspack: a build tool that packages a site's code into files a browser can load.
- Same-origin policy: the rule that a page may only talk to its own origin.
- Sec-Fetch-Site header: a request header in which the browser states the relationship between the page making the request and the address being requested.
- Session cookie: a cookie that lets a server recognise a logged-in user across requests.
- Signature: a cryptographic stamp proving a message came from the expected sender.
- Spoofing: sending a fake value to pretend to be something you are not.
- Validation: checking whether a value is acceptable.
- Vector: a list of values in a fixed order.
- Version: a numbered release of software.
- Vite: a build tool, and Nuxt's default builder.
- Webhook: an automatic message one service sends to another when something happens.
- Webpack: a build tool that packages a site's code into files a browser can load.