Vulnérabilité dans @astrojs/netlify (CVE-2026-73425)
Résumé
Vulnérabilité dans @astrojs/netlify (CVE-2026-73425). Risque d'opérations non autorisées ou de divulgation. Exploitable via image.remotePatterns. Atténuation : mise à jour vers 8.1.2 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
The @astrojs/netlify adapter converts each image.remotePatterns entry into a regular expression that is written to .netlify/v1/config.json under images.remote_images. Netlify's Image CDN uses these regexes as the allowlist that decides which remote image URLs it will optimize. remotePatternToRegex() escapes . in the hostname but interpolates the literal pathname into the regex without escaping regex metacharacters. As a result, the generated allowlist is broader than the pattern the developer declared, and broader than Astro's canonical matchPattern() helper (which compares non-wildcard pathnames by exact string equality).
This is a residual of the same bug class addressed in CVE-2026-54300 (PR #17018, commit 1310277d). That fix corrected wildcard semantics and added a $ anchor but did not add metacharacter escaping for literal pathnames.
Details
In packages/integrations/netlify/src/index.ts, remotePatternToRegex() escapes dots in the hostname:
regexStr += hostname.replace(/\./g, '\\.');
but interpolates the pathname unescaped in all three branches, e.g. the exact-match branch:
regexStr += `(\\${pathname})`;
Any regex metacharacter in the literal path (., +, ?, (, [, ...) is therefore passed through raw. Because . matches any character (including /), a restrictive pattern is silently widened.
The security boundary on Netlify is the generated regex itself — Netlify's Image CDN enforces it dire…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-73425 a été découverte dans @astrojs/netlify.
Des attaquants peuvent cibler un point d'entrée spécifique comme image.remotePatterns à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 3.7/10.
Action : mettez à jour @astrojs/netlify vers 8.1.2 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « @astrojs/netlify CVE-2026-73425 » sur le site de l'éditeur.
CVE-2026-73425 (@astrojs/netlify) — CWE-185 / CVSS v3 3.7
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : image.remotePatterns / images.remote_images / pathname / remotePatterns
Correctif : 8.1.2 — appliquer immédiatement
Contournement : Avoid regex metacharacters (notably .) in image.remotePatterns[].pathname values, or scope the allowed host so that unintended paths are not reachable.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-185) affecte @astrojs/netlify. Les attaquants atteignent le code vulnérable via image.remotePatterns sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de @astrojs/netlify. Surface d'attaque : image.remotePatterns / images.remote_images / pathname / remotePatterns.
Gravité : Faible (CVSS 3.7/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 8.1.2.
Contournement : Avoid regex metacharacters (notably .) in image.remotePatterns[].pathname values, or scope the allowed host so that unintended paths are not reachable.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r '@astrojs/netlify' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
@astrojs/netlifyを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Avoid regex metacharacters (notably `.`) in `image.remotePatterns[].pathname` values, or scope the allowed host so that unintended paths are not reachable.パッチが適用されるまでの応急処置として、Avoid regex metacharacters (notably
.) inimage.remotePatterns[].pathnamevalues, or scope the allowed host so that unintended paths are not reachable. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade @astrojs/netlify to 8.1.2ステージング環境で 8.1.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com