CVE-2017-18635 Cross-Site Scripting in @novnc/novnc

Medium 6.1 Published Updated

A remote VNC server can inject arbitrary HTML into the noVNC web page via status messages, allowing cross-site scripting attacks against users.

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-18635?

CVE-2017-18635 is a medium-severity cross-site scripting vulnerability in Canonical Ubuntu Linux, published on 25 Sep 2019. 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

An XSS vulnerability was discovered in noVNC before 0.6.2 in which the remote VNC server could inject arbitrary HTML into the noVNC web page via the messages propagated to the status field, such as the VNC server name.

Weakness: CWE-79

Which versions are affected by CVE-2017-18635?

2 open source packages ship an affected version, including @novnc/novnc. It affects 4 products.

PackageAffectedFixed in
@novnc/novnc npmAll versions0.6.2
@novnc/novnc npmAll versions0.6.2
Linux distribution packages (1)
novnc Red Hat:openstack:13::el7All versions0:1.1.0-2.el7ost

Products include Canonical Ubuntu Linux, Debian Debian Linux, Novnc Novnc, Redhat Openstack.

How do I fix CVE-2017-18635?

Upgrade @novnc/novnc to 0.6.2 or later.

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-18635 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-18635, DLA-1946-1, DLA-2854-1, GHSA-49rv-g7w5-m8xx, MGASA-2020-0374, RHSA-2020:0754 and 2 more.

Is CVE-2017-18635 in your software?

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

Check your SBOMs for free