CVE-2018-7753
CRITICAL 9.8CVSS 3.0Bleach URI Scheme Restriction Bypass
An issue was discovered in Bleach 2.1.x before 2.1.3. Attributes that have URI values weren't properly sanitized if the values contained character entities. Using character entities, it was possible to construct a URI value with a scheme that was not allowed that would slide through unsanitized.
- Published
- 7 Mar 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-m9mq-p2f9-cfqvPYSEC-2018-51
- Sources
- NVDJSONOSV GHSA-m9mq-p2f9-cfqvJSONOSV PYSEC-2018-51JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mozilla | bleachcpe:2.3:a:mozilla:bleach:2.1:*:*:*:*:*:*:* |
= 2.1 | |
| NVD | mozilla | bleachcpe:2.3:a:mozilla:bleach:2.1.1:*:*:*:*:*:*:* |
= 2.1.1 | |
| NVD | mozilla | bleachcpe:2.3:a:mozilla:bleach:2.1.2:*:*:*:*:*:*:* |
= 2.1.2 | |
| OSV | PyPI | bleach | >= 2.1.0, < 2.1.3 | 2.1.3 |
| OSV | PyPI | bleach | >= 2.1, < 2.1.3 | 2.1.3 |
References
- https://bugs.debian.org/892252 · Third Party Advisory, WEB
- https://github.com/mozilla/bleach/commit/c5df5789ec3471a31311f42c2d19fc2cf21b35ef · Patch, Third Party Advisory, WEB, FIX
- https://github.com/mozilla/bleach/releases/tag/v2.1.3 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-7753 · ADVISORY
- https://github.com/mozilla/bleach · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2018-51.yaml · WEB
- https://github.com/advisories/GHSA-m9mq-p2f9-cfqv · ADVISORY
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 7 Mar 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Mar 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Jan 2019)