AI summary
Produced by SecPulse using an external AI model; it 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 が同じキーになることがあります。そのため、あるupstreamのキャッシュが別のupstreamへのリクエストに再利用され、データの閲覧や改ざんが起きるおそれがあります。修正版の 12.6.4 へ更新してください。更新できない場合は、プラグイン登録時に disableCache: true を指定すると影響を防げます。
URLキャッシュキーの生成における区切り文字不在の問題
@fastify/reply-from バージョン8.3.1から12.6.4未満
クロスアップストリームのデータアクセスおよび修正が可能となるため、高い重要性があります。
パッチとして、バージョン12.6.4にアップグレードしてください。
プラグイン登録時にdisableCache: trueを設定してください。
現在使用している@fastify/reply-fromのバージョンを確認し、影響があるか判断します。
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 GitHub Advisory
References
- advisory cna.openjsf.org
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov