---
title: "CVE-2018-12123\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2018-12123?format=md
keywords: index, follow
---

# CVE-2018-12123

Publication date 28 November 2018

Last updated 26 August 2025

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**4.3 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2018-12123?format=md#impact-score)

Toggle side navigation

## Description

Node.js: All versions prior to Node.js 6.15.0, 8.14.0, 10.14.0 and 11.3.0:
Hostname spoofing in URL parser for javascript protocol: If a Node.js
application is using url.parse() to determine the URL hostname, that
hostname can be spoofed by using a mixed case "javascript:" (e.g.
"javAscript:") protocol (other protocols are not affected). If security
decisions are made about the URL based on the hostname, they may be
incorrect.

### From the Ubuntu Security Team

Martin Bajanik discovered that the url.parse() method would return incorrect
results if it received specially crafted input. An attacker could use this
vulnerability to spoof the hostname and bypass hostname-specific security
controls.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| nodejs | 26.04 LTS resolute | Not affected |
| 25.10 questing | Not affected |
| 25.04 plucky | Not affected |
| 24.10 oracular | Not affected |
| 24.04 LTS noble | Not affected |
| 23.10 mantic | Not affected |
| 23.04 lunar | Not affected |
| 22.10 kinetic | Not affected |
| 22.04 LTS jammy | Not affected |
| 21.10 impish | Not affected |
| 21.04 hirsute | Not affected |
| 20.10 groovy | Not affected |
| 20.04 LTS focal | Not affected |
| 19.10 eoan | Not affected |
| 19.04 disco | Not affected |
| 18.10 cosmic | Ignored end of life |
| 18.04 LTS bionic | Fixed 8.10.0~dfsg-2ubuntu0.4+esm1  Ubuntu Pro |
| 16.04 LTS xenial | Vulnerable |
| 14.04 LTS trusty | Vulnerable |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

4.3 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | Low |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 4.3 · Medium |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12123)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-12123)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2018-12123)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2018-12123)

### Related Ubuntu Security Notices (USN)

+ [USN-4796-1](https://usn.ubuntu.com/USN-4796-1)
+ Node.js vulnerabilities
+ 15 March 2021

### Other references

* <https://nodejs.org/en/blog/vulnerability/november-2018-security-releases/>
* <https://www.cve.org/CVERecord?id=CVE-2018-12123>
