개요
이 취약점이 무엇인지
Impact: When undici parses a Set-Cookie header, it accepts any SameSite attribute value that contains Strict, Lax, or None as a substring, rather than the case-insensitive exact match specified by RFC 6265. Non-spec values are silently mapped to one of the three standard tokens. For example, SameSite=NoneOfYourBusiness is parsed as None (the most permissive setting), and SameSite=StrictLax is parsed as Lax (a downgrade from Strict).
Affected applications are those that consume Set-Cookie headers from server responses (for example via undici's fetch or proxy code paths) and then forward or rely on the parsed sameSite attribute. A malicious or non-compliant server can coerce the consumer's view of a cookie's SameSite policy to a weaker value, silently degrading the SameSite enforcement the cookie is supposed to provide.
This was introduced in undici 5.15.0 when the cookies feature was added.
Patches: Upgrade to undici v6.26.0, v7.28.0 or v8.5.0.
Workarounds: After parsing a Set-Cookie header, validate that the resulting sameSite attribute is one of 'Strict', 'Lax', or 'None' (exact, case-insensitive) before forwarding or relying on it.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| undicinodejs · node.js 용 | 최초 버전 | ≤ | 취약 | < | 6.27.0 | 6.27.0이상 |
| 7.0.0 | ≤ | 취약 | < | 7.28.0 | 7.28.0이상 | |
| 8.0.0 | ≤ | 취약 | < | 8.5.0 | 8.5.0이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 6줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| undiciundici | 최초 버전 | ≤ | 취약 | < | 6.26.0 | 6.26.0이상 |
| 이 버전만 | 영향 없음 | = | 6.26.0 | — | ||
| 7.0.0 | ≤ | 취약 | < | 7.28.0 | 7.28.0이상 | |
| 이 버전만 | 영향 없음 | = | 7.28.0 | — | ||
| 8.0.0 | ≤ | 취약 | < | 8.5.0 | 8.5.0이상 | |
| 이 버전만 | 영향 없음 | = | 8.5.0 | — | ||
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.