Back
CVE-2018-5143
URLs using "javascript:" have the protocol removed when pasted into the addressbar to protect users from cross-site scripting (XSS)…
Medium6.1EPSS 0.92%
- Published
- Updated
- Reserved
- Assigned by
- mozilla
Description
URLs using "javascript:" have the protocol removed when pasted into the addressbar to protect users from cross-site scripting (XSS) attacks, but if a tab character is embedded in the "javascript:" URL the protocol is not removed and the script will execute. This could allow users to be socially engineered to run an XSS attack against themselves. This vulnerability affects Firefox < 59.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.92% · top 40% of all CVEs (5 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Weakness
- Self-XSS pasting javascript: URL with embedded tab into addressbar
- CWE-79 (opens in a new tab)All about CWE-79 and its CVEs
Affected products
References (5)
- https://bugzilla.mozilla.org/show_bug.cgi?id=1422643 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 103386 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 1040514 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- USN-3596-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- https://www.mozilla.org/security/advisories/mfsa2018-06/ (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-5143)Record last updated .