CVE-2018-5143: XSS

Published Mar 13, 2018
·
Updated

Last updated 25 August 2025

Other sources

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.

Launchpad

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.

Affected Software

6 affected componentsFixes available
Mozilla Firefox<59.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Mozilla Firefox<59
59
debian/firefox
147.0.4-1

Event History

Mar 13, 2018
CVE Published
12:00 AM
Jun 11, 2018
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionWeakness
Data Sourced
via NVD·09:29 PM
DescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:06 PM
Description
Nov 26, 2025
Data Sourced
via Ubuntu·06:15 PM
RemedyDescriptionSeverityAffected Software
Feb 20, 2026
Data Sourced
via Debian·12:49 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2018-5143?

CVE-2018-5143 is a vulnerability in Mozilla Firefox where the protocol is not removed from a 'javascript:' URL if it contains a tab character, allowing the execution of scripts.

2

What is the severity of CVE-2018-5143?

The severity of CVE-2018-5143 is medium with a CVSS score of 6.1.

3

Which software is affected by CVE-2018-5143?

Mozilla Firefox versions up to and exclusive of 59.0, Canonical Ubuntu Linux 14.04, 16.04, and 17.10.

4

How can I fix CVE-2018-5143 in Mozilla Firefox?

Update Mozilla Firefox to version 59.0 or higher.

5

Where can I find more information about CVE-2018-5143?

You can find more information about CVE-2018-5143 at the following links: [Bugzilla](https://bugzilla.mozilla.org/show_bug.cgi?id=1422643), [Mozilla Security Advisory](https://www.mozilla.org/en-US/security/advisories/mfsa2018-06/), [SecurityFocus](http://www.securityfocus.com/bid/103386).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203