🇰🇷 한글 설명
Pydantic AI 프레임워크의 특정 버전에서 Agent.to_web() 및 clai 웹 개발 채팅 엔드포인트의 요청 Content-Type 검증이 누락되었습니다. 공격자가 개발자가 방문한 웹사이트를 통해 로컬호스트에서 실행 중인 채팅 서버에 브라우저 호환 요청을 보냄으로써, 로컬 프로세스의 권한으로 에이전트 도구를 실행할 수 있습니다.
💡 쉬운 설명
개발자가 악성 웹사이트에 접속하기만 해도, 내 컴퓨터에서 돌아가고 있는 AI 프로그램이 해커의 명령을 대신 수행할 수 있는 보안 취약점입니다. AI가 가진 권한을 이용해 해커가 내 컴퓨터의 파일을 조작하거나 명령을 내릴 위험이 있습니다.
🇺🇸 원문 (English)
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.34.0 until 1.107.4 and 2.28.0, the Agent.to_web() and clai web development chat endpoint has missing request content-type validation. A website visited by a developer can submit a browser-compatible request to a loopback-hosted chat server, causing the served agent to run and execute tools with the privileges and credentials of the local process; client-relayed approval decisions also leave requires_approval=True tools exposed. Binding to localhost does not prevent a browser page from reaching the loopback address. This issue is fixed in versions 1.107.4 and 2.28.0.
📍 영향받는 시스템
Pydantic AI 1.34.0 ~ 1.107.4 및 2.28.0 미만 버전
⚔️ 공격 벡터
악성 웹사이트를 통한 브라우저 기반의 로컬호스트(loopback) 요청 전송 (CSRF 유사 공격)
🛡️ 대응 방법
Pydantic AI를 1.107.4 또는 2.28.0 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.107.4 또는 2.28.0보다 낮은지 확인하십시오.
pip show pydantic-ai | grep Version