🔍 CVE-2025-31496

7.5
CVSS Score
HIGH
2025-04-07
2026-06-17 09:10
✅ 완료

🇰🇷 한글 설명

apollo-compiler 1.27.0 미만 버전에서 발생하는 취약점으로, 깊게 중첩되고 재사용되는 이름 지정 프래그먼트(named fragments)를 포함한 쿼리를 처리할 때 검증 과정에서 지수적인 리소스 사용이 발생합니다. 이로 인해 과도한 자원 소비가 발생하여 서비스 거부(DoS) 상태에 빠질 수 있습니다.

💡 쉬운 설명

복잡하게 꼬인 질문을 던지면 컴퓨터가 이를 해석하느라 너무 많은 힘을 써서 멈춰버리는 문제입니다. 공격자가 일부러 복잡한 질문을 보내 서비스가 마비되게 만들 수 있습니다.

🇺🇸 원문 (English)

apollo-compiler is a query-based compiler for the GraphQL query language. Prior to 1.27.0, a vulnerability in Apollo Compiler allowed queries with deeply nested and reused named fragments to be prohibitively expensive to validate. Named fragments were being processed once per fragment spread in some cases during query validation, leading to exponential resource usage when deeply nested and reused fragments were involved. This could lead to excessive resource consumption and denial of service in applications. This vulnerability is fixed in 1.27.0.

📍 영향받는 시스템

apollo-compiler 1.27.0 미만 버전

⚔️ 공격 벡터

깊게 중첩되고 재사용되는 이름 지정 프래그먼트를 포함한 악의적인 GraphQL 쿼리 전송

🛡️ 대응 방법

apollo-compiler를 1.27.0 이상의 버전으로 업데이트

🔧 검증 코드

출력된 결과에서 apollo-compiler의 버전이 1.27.0 미만인지 확인합니다.

Shell / Script
npm list apollo-compiler

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H