Summary
Vulnerability in Fastify (CVE-2026-16158). Confidential information can be exposed externally.
Original description
The description as published by the source.
Impact: @fastify/reply-from versions from 8.3.1 up to but not including 12.6.4 build the internal URL cache key by concatenating the destination and source path without a delimiter. Different destination and source pairs can therefore produce the same key while resolving to different upstream URLs. When getUpstream selects an upstream from request data, a URL cached for one upstream can be reused for a request intended for another upstream, causing cross-upstream data access and modification. The default configuration is affected. Setting disableCache to true prevents the behavior. Patches: upgrade to @fastify/reply-from 12.6.4. Workarounds: pass disableCache: true when registering the plugin.
Source: NIST National Vulnerability Database NVD
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
@fastify/reply-fromのバージョン8.3.1から12.6.4未満には、URLキャッシュキーの作成において区切り文字なしで目的地とソースパスを連結する問題があります。このため、異なるパスが同じキャッシュキーを生成し、異なるアップストリームに対するリクエストでキャッシュされたURLが使い回される恐れがあります。これによりクロスアップストリームのデータアクセスおよび修正が可能となります。
URLキャッシュキーの生成における区切り文字不在の問題
@fastify/reply-from バージョン8.3.1から12.6.4未満
クロスアップストリームのデータアクセスおよび修正が可能となるため、高い重要性があります。
パッチとして、バージョン12.6.4にアップグレードしてください。
プラグイン登録時にdisableCache: trueを設定してください。
現在使用している@fastify/reply-fromのバージョンを確認し、影響があるか判断します。
References
- patch cna.openjsf.org
- patch github.com