CVE-2017-12979 Cross-site scripting in n/a

Medium 6.1 Published Updated

An attacker can execute arbitrary JavaScript in DokuWiki by injecting a malicious language name into a code element, potentially compromising user sessions.

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-2017-12979?

CVE-2017-12979 is a medium-severity cross-site scripting vulnerability in n/a, published on 21 Aug 2017. 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

DokuWiki through 2017-02-19c has stored XSS when rendering a malicious language name in a code element, in /inc/parser/xhtml.php. An attacker can create or edit a wiki with this element to trigger JavaScript execution.

Weakness: CWE-79

Which versions are affected by CVE-2017-12979?

It affects 1 product.

Products include Dokuwiki Dokuwiki.

How do I fix CVE-2017-12979?

Upgrade to a fixed version.

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-2017-12979 being exploited?

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

Sources

Also known as DEBIAN-CVE-2017-12979, GHSA-v82p-53p5-5mr8, UBUNTU-CVE-2017-12979.

Is CVE-2017-12979 in your software?

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

Check your SBOMs for free