NVD Vulnerability Detail
Search Exploit, PoC
CVE-2020-4054
Summary

In Sanitize (RubyGem sanitize) greater than or equal to 3.0.0 and less than 5.2.1, there is a cross-site scripting vulnerability. When HTML is sanitized using Sanitize's "relaxed" config, or a custom config that allows certain elements, some content in a math or svg element may not be sanitized correctly even if math and svg are not in the allowlist. You are likely to be vulnerable to this issue if you use Sanitize's relaxed config or a custom config that allows one or more of the following HTML elements: iframe, math, noembed, noframes, noscript, plaintext, script, style, svg, xmp. Using carefully crafted input, an attacker may be able to sneak arbitrary HTML through Sanitize, potentially resulting in XSS (cross-site scripting) or other undesired behavior when that HTML is rendered in a browser. This has been fixed in 5.2.1.

Publication Date June 17, 2020, 7:15 a.m.
Registration Date Jan. 26, 2021, 11:58 a.m.
Last Update Nov. 21, 2024, 2:32 p.m.
CVSS3.1 : HIGH
スコア 7.3
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
CVSS2.0 : MEDIUM
Score 6.8
Vector AV:N/AC:M/Au:N/C:P/I:P/A:P
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃前の認証要否(Au) 不要
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
Get all privileges. いいえ
Get user privileges いいえ
Get other privileges いいえ
User operation required いいえ
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:sanitize_project:sanitize:*:*:*:*:*:ruby:*:* 3.0.0 5.2.1
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Sanitize におけるクロスサイトスクリプティングの脆弱性
Title Sanitize におけるクロスサイトスクリプティングの脆弱性
Summary

Sanitize (RubyGem sanitize) には、クロスサイトスクリプティングの脆弱性が存在します。

Possible impacts 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date June 16, 2020, midnight
Registration Date July 17, 2020, 10:36 a.m.
Last Update July 17, 2020, 10:36 a.m.
Affected System
Ryan Grove
Sanitize 3.0.0 以上 5.2.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2020年07月17日]
  掲載
July 17, 2020, 10:36 a.m.