CVE-2018-5175: XSS

Published May 9, 2018
·
Updated

A mechanism to bypass Content Security Policy (CSP) protections on sites that have a "script-src" policy of "'strict-dynamic'". If a target website contains an HTML injection flaw an attacker could inject a reference to a copy of the "require.js" library that is part of Firefox's Developer Tools, and then use a known technique using that library to bypass the CSP restrictions on executing injected scripts. This vulnerability affects Firefox < 60.

Other sources

A mechanism to bypass Content Security Policy (CSP) protections on sites that have a script-src policy of 'strict-dynamic'. If a target website contains an HTML injection flaw an attacker could inject a reference to a copy of the require.js library that is part of Firefox’s Developer Tools, and then use a known technique using that library to bypass the CSP restrictions on executing injected scripts.

Affected Software

7 affected componentsFixes available
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Canonical Ubuntu Linux=18.04
Mozilla Firefox<60.0
Mozilla Firefox<60
60
debian/firefox
148.0-1

Event History

May 9, 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 29, 2025
Data Sourced
via Ubuntu·06:16 PM
RemedyDescriptionSeverityAffected Software
Feb 27, 2026
Data Sourced
via Debian·12:55 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-5175?

CVE-2018-5175 is a vulnerability that allows bypassing Content Security Policy (CSP) protections on websites with a 'strict-dynamic' policy.

2

Which software is affected by CVE-2018-5175?

Mozilla Firefox versions up to 60.0, Ubuntu with Firefox versions up to 60.0, and various versions of Canonical Ubuntu Linux are affected by CVE-2018-5175.

3

What is the severity rating of CVE-2018-5175?

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

4

How can I fix CVE-2018-5175?

To fix CVE-2018-5175, update your Mozilla Firefox browser to version 60.0 or higher, or update Ubuntu or Canonical Ubuntu Linux to versions that include Firefox 60.0 or higher.

5

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

You can find more information about CVE-2018-5175 at the following references: <ul><li>https://bugzilla.mozilla.org/show_bug.cgi?id=1432358</li><li>https://www.mozilla.org/en-US/security/advisories/mfsa2018-11/</li><li>http://www.securityfocus.com/bid/104139</li></ul>

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