Filament RichEditorに任意のJavaScriptを実行される脆弱性
Summary
Filamentのフォーム部品RichEditorには、HTMLの無害化が一貫して行われていないという脆弱性があります。認証済みの利用者が保存した内容が別の利用者の画面で実行されるおそれがあり、外部から貼り付けた内容がその利用者のセッション内でJavaScriptを実行するおそれもあります。影響を受けるのはfilament/formsの4.17.1未満と5.12.1未満で、修正版は4.17.1以降と5.12.1以降です。修正版への更新をお勧めします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Filamentのフォーム部品RichEditorには、HTMLの無害化が一貫して行われていないという脆弱性があります。認証済みの利用者が保存した内容が別の利用者の画面で実行されるおそれがあり、外部から貼り付けた内容がその利用者のセッション内でJavaScriptを実行するおそれもあります。影響を受けるのはfilament/formsの4.17.1未満と5.12.1未満で、修正版は4.17.1以降と5.12.1以降です。修正版への更新をお勧めします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| composerfilament/forms |
>= 4.0.0, < 4.17.1→ >= 4.17.1 |
>= 4.17.1 |
| composerfilament/forms |
>= 5.0.0, < 5.12.1→ >= 5.12.1 |
>= 5.12.1 |
Original description The description as published by the source.
Filament's RichEditor did not consistently sanitize HTML derived from editor state and pasted content.
An authenticated user who could save rich editor content could cause untrusted HTML to be stored and run when another user viewed it. Separately, content pasted from an untrusted source could run JavaScript in the session of the user performing the paste. The paste-time behavior was not persistent and required file attachments to be enabled.
Successful exploitation could run JavaScript in the application's origin with the permissions of the affected user's browser session.
Discovered by Anthropic's OSS Scanner as vulnerabilities ANT-2026-9CO2RK2K and ANT-2026-0HFKW1UP.
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY filamentphp/filament