🔍 CVE-2026-41481

6.5
CVSS Score
MEDIUM
2026-04-24
2026-07-15 02:21
✅ 완료

🇰🇷 한글 설명

LangChain의 langchain-text-splitters 1.1.2 미만 버전에서 HTMLHeaderTextSplitter.split_text_from_url() 함수가 리다이렉트된 URL을 재검증하지 않는 취약점이 발견되었습니다. 공격자가 제어하는 서버로 리다이렉트될 경우 내부 네트워크나 클라우드 메타데이터 엔드포인트에 접근하여 민감한 정보를 탈취할 수 있는 SSRF 취약점이 존재합니다.

💡 쉬운 설명

웹사이트 주소를 입력하면 내용을 읽어오는 기능이 있는데, 중간에 가짜 주소로 연결(리다이렉트)되어도 이를 확인하지 않고 내부 비밀 정보가 담긴 주소까지 접속해버리는 문제입니다. 이를 통해 공격자가 회사의 내부 시스템 정보를 몰래 빼낼 수 있습니다.

🇺🇸 원문 (English)

LangChain is a framework for building agents and LLM-powered applications. Prior to langchain-text-splitters 1.1.2, HTMLHeaderTextSplitter.split_text_from_url() validated the initial URL using validate_safe_url() but then performed the fetch with requests.get() with redirects enabled (the default). Because redirect targets were not revalidated, a URL pointing to an attacker-controlled server could redirect to internal, localhost, or cloud metadata endpoints, bypassing SSRF protections. The response body is parsed and returned as Document objects to the calling application code. Whether this constitutes a data exfiltration path depends on the application: if it exposes Document contents (or derivatives) back to the requester who supplied the URL, sensitive data from internal endpoints could be leaked. Applications that store or process Documents internally without returning raw content to the requester are not directly exposed to data exfiltration through this issue. This vulnerability is fixed in 1.1.2.

📍 영향받는 시스템

langchain-text-splitters 버전 1.1.2 미만

⚔️ 공격 벡터

공격자가 제어하는 URL로 리다이렉트를 유도하여 내부망 또는 클라우드 메타데이터 서비스에 접근하는 SSRF 공격

🛡️ 대응 방법

langchain-text-splitters 패키지를 1.1.2 버전 이상으로 업데이트

🔧 검증 코드

출력된 버전 번호가 1.1.2보다 낮으면 취약한 상태이며, 1.1.2 이상이면 안전합니다.

Shell / Script
pip show langchain-text-splitters | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server