CVE-2018-12040 Cross-site scripting in n/a

Medium 6.1 Published Updated

Reflected XSS in Symfony's web profiler allows script injection via the file parameter, requiring the profiler to be enabled in production.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-12040?

CVE-2018-12040 is a medium-severity cross-site scripting vulnerability in Sensiolabs Symfony, published on 13 Jun 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Reflected Cross-site scripting (XSS) vulnerability in the web profiler in SensioLabs Symfony 3.3.6 allows remote attackers to inject arbitrary web script or HTML via the "file" parameter, aka an _profiler/open?file= URI. NOTE: The vendor states "The XSS ... is in the web profiler, a tool that should never be deployed in production (so, we don't handle those issues as security issues).

Weakness: CWE-79

Which versions are affected by CVE-2018-12040?

It affects 1 product.

Products include Sensiolabs Symfony.

How do I fix CVE-2018-12040?

Change a configuration setting.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2018-12040 being exploited?

There is no known exploitation of CVE-2018-12040 in the wild and no public exploit code.

All Sensiolabs Symfony vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-12040, GHSA-mjcw-3g32-5p52.

Is CVE-2018-12040 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free