Every CVE Search/ Get API key

CVE-2025-61925

Astro's `X-Forwarded-Host` is reflected with no validation

6.5 MediumFix available

Astro is a web framework. Prior to version 5.14.2, Astro reflects the value in X-Forwarded-Host in output when using Astro.url without any validation. It is common for web servers such as nginx to route requests via the Host header, and forward on other request headers. As such as malicious request can be sent with both a Host header and an X-Forwarded-Host header where the values do not match and the X-Forwarded-Host header is malicious. Astro will then return the malicious value. This could result in any usages of the Astro.url value in code being manipulated by a request. For example if a user follows guidance and uses Astro.url for a canonical link the canonical link can be manipulated to another site. It is theoretically possible that the value could also be used as a login/registration or other form URL as well, resulting in potential redirecting of login credentials to a malicious party. As this is a per-request attack vector the surface area would only be to the malicious user until one considers that having a caching proxy is a common setup, in which case any page which is cached could persist the malicious value for subsequent users. Many other frameworks have an allowlist of domains to validate against, or do not have a case where the headers are reflected to avoid such issues. This could affect anyone using Astro in an on-demand/dynamic rendering mode behind a caching proxy. Version 5.14.2 contains a fix for the issue.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
Low

Exploit likelihood

0.41%Up 0.4 points since Oct 11, 2025
90%50%10%1%

What each source reports

CVE List Score used 6.5

Astro's `X-Forwarded-Host` is reflected with no validation

Astro is a web framework. Prior to version 5.14.2, Astro reflects the value in X-Forwarded-Host in output when using Astro.url without any validation. It is common for web servers such as nginx to route requests via the Host header, and forward on other request headers. As such as malicious request can be sent with both a Host header and an X-Forwarded-Host header where the values do not match and the X-Forwarded-Host header is malicious. Astro will then return the malicious value. This could result in any usages of the Astro.url value in code being manipulated by a request. For example if a user follows guidance and uses Astro.url for a canonical link the canonical link can be manipulated to another site. It is theoretically possible that the value could also be used as a login/registration or other form URL as well, resulting in potential redirecting of login credentials to a malicious party. As this is a per-request attack vector the surface area would only be to the malicious user until one considers that having a caching proxy is a common setup, in which case any page which is cached could persist the malicious value for subsequent users. Many other frameworks have an allowlist of domains to validate against, or do not have a case where the headers are reflected to avoid such issues. This could affect anyone using Astro in an on-demand/dynamic rendering mode behind a caching proxy. Version 5.14.2 contains a fix for the issue.

Record
CVE-2025-61925
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-470
Updated
2026-11-02
EUVDEUVD-2025-33766 6.5

Astro is a web framework. Prior to version 5.14.2, Astro reflects the value in X-Forwarded-Host in output when using Astro.url without any validation. It is common for web servers such as nginx to route requests via the Host header, and forward on other request headers. As such as malicious request can be sent with both a Host header and an X-Forwarded-Host header where the values do not match and the X-Forwarded-Host header is malicious. Astro will then return the malicious value. This could result in any usages of the Astro.url value in code being manipulated by a request. For example if a user follows guidance and uses Astro.url for a canonical link the canonical link can be manipulated to another site. It is theoretically possible that the value could also be used as a login/registration or other form URL as well, resulting in potential redirecting of login credentials to a malicious party. As this is a per-request attack vector the surface area would only be to the malicious user until one considers that having a caching proxy is a common setup, in which case any page which is cached could persist the malicious value for subsequent users. Many other frameworks have an allowlist of domains to validate against, or do not have a case where the headers are reflected to avoid such issues. This could affect anyone using Astro in an on-demand/dynamic rendering mode behind a caching proxy. Version 5.14.2 contains a fix for the issue.

Record
EUVD-2025-33766
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Updated
2026-11-02
GitHub AdvisoriesGHSA-5ff5-9fcw-vg88 6.5

Astro's `X-Forwarded-Host` is reflected without validation

Summary

When running Astro in on-demand rendering mode using a adapter such as the node adapter it is possible to maliciously send an X-Forwarded-Host header that is reflected when using the recommended Astro.url property as there is no validation that the value is safe.

Details

Astro reflects the value in X-Forwarded-Host in output when using Astro.url without any validation.

It is common for web servers such as nginx to route requests via the Host header, and forward on other request headers. As such as malicious request can be sent with both a Host header and an X-Forwarded-Host header where the values do not match and the X-Forwarded-Host header is malicious. Astro will then return the malicious value.

This could result in any usages of the Astro.url value in code being manipulated by a request. For example if a user follows guidance and uses Astro.url for a canonical link the canonical link can be manipulated to another site. It is not impossible to imagine that the value could also be used as a login/registration or other form URL as well, resulting in potential redirecting of login credentials to a malicious party.

As this is a per-request attack vector the surface area would only be to the malicious user until one considers that having a caching proxy is a common setup, in which case any page which is cached could persist the malicious value for subsequent users.

Many other frameworks have an allowlist of domains to validate against, or do not have a case where the headers are reflected to avoid such issues.

PoC

  • Check out the minimal Astro example found here: https://github.com/Chisnet/minimal_dynamic_astro_server
  • nvm use
  • yarn run build
  • node ./dist/server/entry.mjs
  • curl --location 'http://localhost:4321/' --header 'X-Forwarded-Host: www.evil.com' --header 'Host: www.example.com'
  • Observe that the response reflects the malicious X-Forwarded-Host header

For the more advanced / dangerous attack vector deploy the application behind a caching proxy, e.g. Cloudflare, set a non-zero cache time, perform the above curl request a few times to establish a cache, then perform the request without the malicious headers and observe that the malicious data is persisted.

Impact

This could affect anyone using Astro in an on-demand/dynamic rendering mode behind a caching proxy.

Record
GHSA-5ff5-9fcw-vg88
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-20, CWE-470
Updated
2026-11-02
NVD 6.5

Astro is a web framework. Prior to version 5.14.2, Astro reflects the value in X-Forwarded-Host in output when using Astro.url without any validation. It is common for web servers such as nginx to route requests via the Host header, and forward on other request headers. As such as malicious request can be sent with both a Host header and an X-Forwarded-Host header where the values do not match and the X-Forwarded-Host header is malicious. Astro will then return the malicious value. This could result in any usages of the Astro.url value in code being manipulated by a request. For example if a user follows guidance and uses Astro.url for a canonical link the canonical link can be manipulated to another site. It is theoretically possible that the value could also be used as a login/registration or other form URL as well, resulting in potential redirecting of login credentials to a malicious party. As this is a per-request attack vector the surface area would only be to the malicious user until one considers that having a caching proxy is a common setup, in which case any page which is cached could persist the malicious value for subsequent users. Many other frameworks have an allowlist of domains to validate against, or do not have a case where the headers are reflected to avoid such issues. This could affect anyone using Astro in an on-demand/dynamic rendering mode behind a caching proxy. Version 5.14.2 contains a fix for the issue.

Record
CVE-2025-61925
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-470
Updated
2026-11-02
OSVGHSA-5ff5-9fcw-vg88 6.5

Astro's `X-Forwarded-Host` is reflected without validation

Summary

When running Astro in on-demand rendering mode using a adapter such as the node adapter it is possible to maliciously send an X-Forwarded-Host header that is reflected when using the recommended Astro.url property as there is no validation that the value is safe.

Details

Astro reflects the value in X-Forwarded-Host in output when using Astro.url without any validation.

It is common for web servers such as nginx to route requests via the Host header, and forward on other request headers. As such as malicious request can be sent with both a Host header and an X-Forwarded-Host header where the values do not match and the X-Forwarded-Host header is malicious. Astro will then return the malicious value.

This could result in any usages of the Astro.url value in code being manipulated by a request. For example if a user follows guidance and uses Astro.url for a canonical link the canonical link can be manipulated to another site. It is not impossible to imagine that the value could also be used as a login/registration or other form URL as well, resulting in potential redirecting of login credentials to a malicious party.

As this is a per-request attack vector the surface area would only be to the malicious user until one considers that having a caching proxy is a common setup, in which case any page which is cached could persist the malicious value for subsequent users.

Many other frameworks have an allowlist of domains to validate against, or do not have a case where the headers are reflected to avoid such issues.

PoC

  • Check out the minimal Astro example found here: https://github.com/Chisnet/minimal_dynamic_astro_server
  • nvm use
  • yarn run build
  • node ./dist/server/entry.mjs
  • curl --location 'http://localhost:4321/' --header 'X-Forwarded-Host: www.evil.com' --header 'Host: www.example.com'
  • Observe that the response reflects the malicious X-Forwarded-Host header

For the more advanced / dangerous attack vector deploy the application behind a caching proxy, e.g. Cloudflare, set a non-zero cache time, perform the above curl request a few times to establish a cache, then perform the request without the malicious headers and observe that the malicious data is persisted.

Impact

This could affect anyone using Astro in an on-demand/dynamic rendering mode behind a caching proxy.

Record
GHSA-5ff5-9fcw-vg88
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-20, CWE-470
Updated
2026-11-02
OSVCLSA-2026-1777855417 No score

TuxCare security update for astro (10 CVEs)

TuxCare rebuilt astro to address 10 CVEs. Fixed in 1.9.2-tuxcare.1.

Record
CLSA-2026-1777855417
Updated
2026-11-02
Show 18 moreShow less
OSVCLSA-2026-1777855422 No score

TuxCare security update for astro (10 CVEs)

TuxCare rebuilt astro to address 10 CVEs. Fixed in 0.26.1-tuxcare.1.

Record
CLSA-2026-1777855422
Updated
2026-11-02
OSVCLSA-2026-1777941830 No score

TuxCare security update for astro (10 CVEs)

TuxCare rebuilt astro to address 10 CVEs. Fixed in 2.10.15-tuxcare.1.

Record
CLSA-2026-1777941830
Updated
2026-11-02
OSVCLSA-2026-1778114666 No score

TuxCare security update for 5 packages (9 CVEs)

TuxCare rebuilt 5 packages to address 9 CVEs. Fixed in 4.16.19-tuxcare.1.

Record
CLSA-2026-1778114666
Updated
2026-11-02
OSVCLSA-2026-1778633121 No score

TuxCare security update for astro (11 CVEs)

TuxCare rebuilt astro to address 11 CVEs. Fixed in 3.6.5-tuxcare.1.

Record
CLSA-2026-1778633121
Updated
2026-11-02
OSVCLSA-2026-1792161544 No score

TuxCare security update for @astrojs/internal-helpers (11 CVEs)

TuxCare rebuilt @astrojs/internal-helpers to address 11 CVEs. Fixed in 2.10.15-tuxcare.1.

Record
CLSA-2026-1792161544
Updated
2026-11-02
OSVCLSA-2026-1792161545 No score

TuxCare security update for @astrojs/internal-helpers (10 CVEs)

TuxCare rebuilt @astrojs/internal-helpers to address 10 CVEs. Fixed in 4.16.19-tuxcare.1.

Record
CLSA-2026-1792161545
Updated
2026-11-02
OSVCLSA-2026-1792161546 No score

TuxCare security update for @astrojs/internal-helpers (13 CVEs)

TuxCare rebuilt @astrojs/internal-helpers to address 13 CVEs. Fixed in 3.6.5-tuxcare.1.

Record
CLSA-2026-1792161546
Updated
2026-11-02
OSVCLSA-2026-1792161681 No score

TuxCare security update for @astrojs/prism (10 CVEs)

TuxCare rebuilt @astrojs/prism to address 10 CVEs. Fixed in 1.9.2-tuxcare.1.

Record
CLSA-2026-1792161681
Updated
2026-11-02
OSVCLSA-2026-1792161682 No score

TuxCare security update for @astrojs/prism (10 CVEs)

TuxCare rebuilt @astrojs/prism to address 10 CVEs. Fixed in 0.26.1-tuxcare.1.

Record
CLSA-2026-1792161682
Updated
2026-11-02
OSVCLSA-2026-1792161683 No score

TuxCare security update for @astrojs/prism (11 CVEs)

TuxCare rebuilt @astrojs/prism to address 11 CVEs. Fixed in 2.10.15-tuxcare.1.

Record
CLSA-2026-1792161683
Updated
2026-11-02
OSVCLSA-2026-1792161684 No score

TuxCare security update for @astrojs/prism (10 CVEs)

TuxCare rebuilt @astrojs/prism to address 10 CVEs. Fixed in 4.16.19-tuxcare.1.

Record
CLSA-2026-1792161684
Updated
2026-11-02
OSVCLSA-2026-1792161686 No score

TuxCare security update for @astrojs/prism (13 CVEs)

TuxCare rebuilt @astrojs/prism to address 13 CVEs. Fixed in 3.6.5-tuxcare.1.

Record
CLSA-2026-1792161686
Updated
2026-11-02
OSVCLSA-2026-1792161759 No score

TuxCare security update for @astrojs/studio (10 CVEs)

TuxCare rebuilt @astrojs/studio to address 10 CVEs. Fixed in 4.16.19-tuxcare.1.

Record
CLSA-2026-1792161759
Updated
2026-11-02
OSVCLSA-2026-1792161775 No score

TuxCare security update for @astrojs/underscore-redirects (11 CVEs)

TuxCare rebuilt @astrojs/underscore-redirects to address 11 CVEs. Fixed in 2.10.15-tuxcare.1.

Record
CLSA-2026-1792161775
Updated
2026-11-02
OSVCLSA-2026-1792161776 No score

TuxCare security update for @astrojs/underscore-redirects (10 CVEs)

TuxCare rebuilt @astrojs/underscore-redirects to address 10 CVEs. Fixed in 4.16.19-tuxcare.1.

Record
CLSA-2026-1792161776
Updated
2026-11-02
OSVCLSA-2026-1792161777 No score

TuxCare security update for @astrojs/underscore-redirects (13 CVEs)

TuxCare rebuilt @astrojs/underscore-redirects to address 13 CVEs. Fixed in 3.6.5-tuxcare.1.

Record
CLSA-2026-1792161777
Updated
2026-11-02
OSVCLSA-2026-1792161847 No score

TuxCare security update for @astrojs/upgrade (10 CVEs)

TuxCare rebuilt @astrojs/upgrade to address 10 CVEs. Fixed in 4.16.19-tuxcare.1.

Record
CLSA-2026-1792161847
Updated
2026-11-02
OSVCLSA-2026-1792161848 No score

TuxCare security update for @astrojs/upgrade (13 CVEs)

TuxCare rebuilt @astrojs/upgrade to address 13 CVEs. Fixed in 3.6.5-tuxcare.1.

Record
CLSA-2026-1792161848
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
astro
npm
before 5.14.3
5.14.3
astro
TuxCare:npm
From an advisory covering 10 CVEs
1.9.2-tuxcare.0 up to 1.9.2-tuxcare.1, plus listed versions
1.9.2
1.9.2-tuxcare.1
astro
TuxCare:npm
From an advisory covering 10 CVEs
0.26.1-tuxcare.0 up to 0.26.1-tuxcare.1, plus listed versions
0.26.1
0.26.1-tuxcare.1
astro
TuxCare:npm
From an advisory covering 10 CVEs
2.10.15-tuxcare.0 up to 2.10.15-tuxcare.1, plus listed versions
2.10.15
2.10.15-tuxcare.1
@astrojs/db
TuxCare:npm
From an advisory covering 8 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
@astrojs/rss
TuxCare:npm
From an advisory covering 8 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
@astrojs/telemetry
TuxCare:npm
From an advisory covering 8 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
astro
TuxCare:npm
From an advisory covering 8 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
create-astro
TuxCare:npm
From an advisory covering 8 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
astro
TuxCare:npm
From an advisory covering 11 CVEs
3.6.5-tuxcare.0 up to 3.6.5-tuxcare.1, plus listed versions
3.6.5
3.6.5-tuxcare.1
Show 14 moreShow less
Affected packages
PackageAffectedFixed
@astrojs/internal-helpers
TuxCare:npm
From an advisory covering 11 CVEs
2.10.15-tuxcare.0 up to 2.10.15-tuxcare.1, plus listed versions
2.10.15
2.10.15-tuxcare.1
@astrojs/internal-helpers
TuxCare:npm
From an advisory covering 9 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
@astrojs/internal-helpers
TuxCare:npm
From an advisory covering 13 CVEs
3.6.5-tuxcare.0 up to 3.6.5-tuxcare.1, plus listed versions
3.6.5
3.6.5-tuxcare.1
@astrojs/prism
TuxCare:npm
From an advisory covering 10 CVEs
1.9.2-tuxcare.0 up to 1.9.2-tuxcare.1, plus listed versions
1.9.2
1.9.2-tuxcare.1
@astrojs/prism
TuxCare:npm
From an advisory covering 10 CVEs
0.26.1-tuxcare.0 up to 0.26.1-tuxcare.1, plus listed versions
0.26.1
0.26.1-tuxcare.1
@astrojs/prism
TuxCare:npm
From an advisory covering 11 CVEs
2.10.15-tuxcare.0 up to 2.10.15-tuxcare.1, plus listed versions
2.10.15
2.10.15-tuxcare.1
@astrojs/prism
TuxCare:npm
From an advisory covering 9 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
@astrojs/prism
TuxCare:npm
From an advisory covering 13 CVEs
3.6.5-tuxcare.0 up to 3.6.5-tuxcare.1, plus listed versions
3.6.5
3.6.5-tuxcare.1
@astrojs/studio
TuxCare:npm
From an advisory covering 9 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
@astrojs/underscore-redirects
TuxCare:npm
From an advisory covering 11 CVEs
2.10.15-tuxcare.0 up to 2.10.15-tuxcare.1, plus listed versions
2.10.15
2.10.15-tuxcare.1
@astrojs/underscore-redirects
TuxCare:npm
From an advisory covering 9 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
@astrojs/underscore-redirects
TuxCare:npm
From an advisory covering 13 CVEs
3.6.5-tuxcare.0 up to 3.6.5-tuxcare.1, plus listed versions
3.6.5
3.6.5-tuxcare.1
@astrojs/upgrade
TuxCare:npm
From an advisory covering 9 CVEs
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.1, plus listed versions
4.16.19
4.16.19-tuxcare.1
@astrojs/upgrade
TuxCare:npm
From an advisory covering 13 CVEs
3.6.5-tuxcare.0 up to 3.6.5-tuxcare.1, plus listed versions
3.6.5
3.6.5-tuxcare.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2025-61925 is a medium vulnerability (CVSS 6.5) in Astro, published October 10, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.41%, the 35th percentile. Fixed in astro 5.14.3.

References

MoveEnter Open