<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Thu, 08 Oct 2026 21:28:12 +0000</lastBuildDate>
    <item>
      <title>GHSA-67mh-4wv8-2f99 — esbuild enables any website to send any requests to the development server and read the response</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-67mh-4wv8-2f99</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: esbuild&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;esbuild allows any websites to send any request to the development server and read the response due to default CORS settings.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;esbuild sets `Access-Control-Allow-Origin: *` header to all requests, including the SSE connection, which allows any websites to send any request to the development server and read the response.&lt;/p&gt;
&lt;p&gt;https://github.com/evanw/esbuild/blob/df815ac27b84f8b34374c9182a93c94718f8a630/pkg/api/serve_other.go#L121
https://github.com/evanw/esbuild/blob/df815ac27b84f8b34374c9182a93c94718f8a630/pkg/api/serve_other.go#L363&lt;/p&gt;
&lt;p&gt;**Attack scenario**:&lt;/p&gt;
&lt;p&gt;1. The attacker serves a malicious web page (`http://malicious.example.com`).
1. The user accesses the malicious web page.
1. The attacker sends a `fetch(&amp;#39;http://127.0.0.1:8000/main.js&amp;#39;)` request by JS in that malicious web page. This request is normally blocked by same-origin policy, but that&amp;#39;s not the case for the reasons above.
1. The attacker gets the content of `http://127.0.0.1:8000/main.js`.&lt;/p&gt;
&lt;p&gt;In this scenario, I assumed that the attacker knows the URL of the bundle output file name. But the attacker can also get that information by&lt;/p&gt;
&lt;p&gt;- Fetching `/index.html`: normally you have a script tag here
- Fetching `/assets`: it&amp;#39;s common to have a `assets` directory when you have JS files and CSS files in a different directory and the directory listing feature tells the attacker the list of files
- Connecting `/esbuild` SSE endpoint: the SSE endpoint sends the URL path of the changed files when the file…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: esbuild&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;esbuild allows any websites to send any request to the development server and read the response due to default CORS settings.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;esbuild sets `Access-Control-Allow-Origin: *` header to all requests, including the SSE connection, which allows any websites to send any request to the development server and read the response.&lt;/p&gt;
&lt;p&gt;https://github.com/evanw/esbuild/blob/df815ac27b84f8b34374c9182a93c94718f8a630/pkg/api/serve_other.go#L121
https://github.com/evanw/esbuild/blob/df815ac27b84f8b34374c9182a93c94718f8a630/pkg/api/serve_other.go#L363&lt;/p&gt;
&lt;p&gt;**Attack scenario**:&lt;/p&gt;
&lt;p&gt;1. The attacker serves a malicious web page (`http://malicious.example.com`).
1. The user accesses the malicious web page.
1. The attacker sends a `fetch(&amp;#39;http://127.0.0.1:8000/main.js&amp;#39;)` request by JS in that malicious web page. This request is normally blocked by same-origin policy, but that&amp;#39;s not the case for the reasons above.
1. The attacker gets the content of `http://127.0.0.1:8000/main.js`.&lt;/p&gt;
&lt;p&gt;In this scenario, I assumed that the attacker knows the URL of the bundle output file name. But the attacker can also get that information by&lt;/p&gt;
&lt;p&gt;- Fetching `/index.html`: normally you have a script tag here
- Fetching `/assets`: it&amp;#39;s common to have a `assets` directory when you have JS files and CSS files in a different directory and the directory listing feature tells the attacker the list of files
- Connecting `/esbuild` SSE endpoint: the SSE endpoint sends the URL path of the changed files when the file…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-67mh-4wv8-2f99</guid>
    </item>
  </channel>
</rss>
