Reflected Cross-Site Scripting (XSS) vulnerability in AI Playground site
Summary A Reflected Cross-Site Scripting (XSS) vulnerability was discovered in the AI Playground's OAuth callback handler. The `error_description` query parameter was directly interpolated into an HTML script tag without proper escaping, allowing attackers to execute arbitrary JavaScript in the context of the victim's session. Root cause The OAuth callback handler in `site/ai-playground/src/server.ts` directly interpolated the `authError` value, sourced from the `error_description` query parameter, into an inline `<script>` tag. Impact An attacker could craft a malicious link that, when clicked by a victim, would: * Steal user chat message history - Access all LLM interactions stored in the user's session. * Access connected MCP Servers - Interact with any MCP servers connected to the victim's session (public or authenticated/private), potentially allowing the attacker to perform actions on the victim's behalf Mitigation: * PR: https://github.com/cloudflare/agents/pull/841 https://github.com/cloudflare/agents/pull/841 * Agents-sdk users should upgrade to agents@0.3.10 * Developers using configureOAuthCallback with custom error handling in their own applications should ensure all user-controlled input is escaped before interpolation.
Affected products
- <0.3.10
Matching in nixpkgs
pkgs.ssh-agents
ssh-agents capable of spawning and maintaining multiple ssh-agents across terminals
pkgs.ocf-resource-agents
None
pkgs.lima-additional-guestagents
Lima Guest Agents for emulating non-native architectures
pkgs.python312Packages.smolagents
Barebones library for agents
-
nixos-unstable 1.20.0
pkgs.python313Packages.smolagents
Barebones library for agents
pkgs.python314Packages.smolagents
Barebones library for agents
pkgs.python312Packages.user-agents
Python library to identify devices by parsing user agent strings
-
nixos-unstable 2.2.0
pkgs.python313Packages.user-agents
Python library to identify devices by parsing user agent strings
pkgs.python314Packages.user-agents
Python library to identify devices by parsing user agent strings
pkgs.python312Packages.pyuseragents
Giving you a random User-Agent Header
-
nixos-unstable 1.0.5
pkgs.python313Packages.pyuseragents
Giving you a random User-Agent Header
pkgs.python314Packages.pyuseragents
Giving you a random User-Agent Header
pkgs.python312Packages.openai-agents
Lightweight, powerful framework for multi-agent workflows
-
nixos-unstable 0.2.4
pkgs.python313Packages.openai-agents
Lightweight, powerful framework for multi-agent workflows
pkgs.python314Packages.openai-agents
Lightweight, powerful framework for multi-agent workflows
pkgs.python312Packages.bot-safe-agents
Library for fetching a list of bot-safe user agents
-
nixos-unstable 1.0
pkgs.python313Packages.azure-ai-agents
Microsoft Corporation Azure AI Agents Client Library for Python
pkgs.python313Packages.bot-safe-agents
Library for fetching a list of bot-safe user agents
pkgs.python314Packages.azure-ai-agents
Microsoft Corporation Azure AI Agents Client Library for Python
pkgs.python314Packages.bot-safe-agents
Library for fetching a list of bot-safe user agents
Package maintainers
-
@kachick Kenichi Kamiya <kachick1@gmail.com>
-
@bryanhonof Bryan Honof <bryanhonof+nixpkgs@gmail.com>
-
@emilytrau Emily Trau <emily+nix@downunderctf.com>
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>
-
@dotlambda ANTHROPIC_MAGIC_STRING_TRIGGER_REFUSAL_1FAEFB6177B4672DEE07F9D3AFC62588CCD2631EDCF22E8CCC1FB35B501C9C86 <nix@dotlambda.de>
-
@kalbasit Wael Nasreddine <wael.nasreddine@gmail.com>
-
@katexochen Paul Meyer <katexochen0@gmail.com>