높음취약점
Pydantic AI has Stored XSS via Path Traversal in Web UI CDN URL
GHSA-wjp5-868j-wqv7 · CVE-2026-25640 · PYSEC-2026-2979 · PYSEC-2026-2983 · 갱신 2026. 7. 14.
영향 받는 패키지
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| PyPI | pydantic-ai | 1.51.0 |
| PyPI | pydantic-ai-slim | 1.51.0 |
GHSA-wjp5-868j-wqv7 · CVE-2026-25640 · PYSEC-2026-2979 · PYSEC-2026-2983 · 갱신 2026. 7. 14.
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| PyPI | pydantic-ai | 1.51.0 |
| PyPI | pydantic-ai-slim | 1.51.0 |
The attacker's JavaScript executes in the victim's browser in the context of the Pydantic AI web application, with access to:
localStorage (all user messages and AI responses)HttpOnly, if authentication middleware is configuredUpgrade to the patched version or later. The fix removes the user-controllable version parameter entirely. The CDN URL is now hardcoded at startup and cannot be influenced by request parameters.
A new html_source parameter is available on Agent.to_web and create_web_app for applications that need to customize the UI source (e.g., for enterprise environments, offline usage, or custom UI builds). This parameter is only settable in application code, not via query parameters.