langflowにおけるクロスサイトスクリプティングの脆弱性
| Title |
langflowにおけるクロスサイトスクリプティングの脆弱性
|
| Summary |
'/api/v1/files/images/{flow_id}/{file_name}' エンドポイントは、内容をサニタイズせずに 'image/svg+xml' コンテンツタイプでSVGファイルを提供します。SVGファイルには埋め込みJavaScriptが含まれる可能性があり、攻撃者は悪意のあるSVGをアップロードして他のユーザーが閲覧した際に任意のJavaScriptを実行させ、保存型クロスサイトスクリプティング(XSS)を引き起こすことができます。これにより、JWTのアクセスおよびリフレッシュトークンを含む、クッキーに保存された認証トークンを盗むことが可能になります。
|
| Possible impacts |
当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
March 27, 2026, midnight |
| Registration Date |
April 21, 2026, 10:43 a.m. |
| Last Update |
April 21, 2026, 10:43 a.m. |
|
CVSS3.0 : 警告
|
| Score |
5.4
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected System
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年04月21日] 掲載 |
April 21, 2026, 10:43 a.m. |
NVD Vulnerability Information
CVE-2026-5026
| Summary |
The '/api/v1/files/images/{flow_id}/{file_name}' endpoint serves SVG files with the 'image/svg+xml' content type without sanitizing their content.
Since SVG files can contain embedded JavaScript, an attacker can upload a malicious SVG that executes arbitrary JavaScript when viewed by other users, leading to stored cross-site scripting (XSS). This allows stealing authentication tokens stored in cookies, including JWT access and refresh tokens.
|
| Publication Date |
March 28, 2026, 12:17 a.m. |
| Registration Date |
April 27, 2026, 12:20 p.m. |
| Last Update |
April 20, 2026, 10:04 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:langflow:langflow:-:*:*:*:*:*:*:* |
|
|
|
|
Related information, measures and tools
Common Vulnerabilities List