cve.bz

CVE-2018-12123 nodejs node.js: Misinterpretation of Input

4.3 mediumEPSS 4.0%Fix available

Medium (4.3) in nodejs node.js. EPSS 4.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
EPSS
4.0% (unchanged from 4.0% a week ago; 4.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-115 Misinterpretation of Input
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-12123 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-12123?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-12123?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-12123 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2018-12123

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-12123](https://cve.bz/cve/badge/CVE-2018-12123.svg)](https://cve.bz/cve/CVE-2018-12123)

HTML:

<a href="https://cve.bz/cve/CVE-2018-12123"><img src="https://cve.bz/cve/badge/CVE-2018-12123.svg" alt="CVE-2018-12123"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nodejs:node.jsfrom 6.0.0 before 6.15.0
nodejs:node.jsfrom 8.0.0 before 8.14.0
nodejs:node.jsfrom 10.0.0 before 10.14.0
nodejs:node.jsfrom 11.0.0 before 11.3.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14nodejs10.15.0~dfsg-6DEBIAN-CVE-2018-12123
UbuntuPro:14.04:LTS, Pro:16.04:LTSnodejsno fix listedUBUNTU-CVE-2018-12123 USN-4796-1
UbuntuPro:18.04:LTSnodejs8.10.0~dfsg-2ubuntu0.4+esm1UBUNTU-CVE-2018-12123 USN-4796-1
Red Hatrhel_software_collections:3::el7rh-nodejs10, rh-nodejs10-runtime, rh-nodejs10-scldevel0:3.2-3.el7RHSA-2019:2939
Red Hatrhel_software_collections:3::el7rh-nodejs10-nodejs, rh-nodejs10-nodejs-docs, rh-nodejs10-nodejs-devel and 1 more0:10.16.3-3.el7RHSA-2019:2939
Red Hatrhel_software_collections:3::el7rh-nodejs10-npm0:6.9.0-10.16.3.3.el7RHSA-2019:2939
Red Hatrhel_software_collections:3::el7rh-nodejs8-nodejs, rh-nodejs8-nodejs-docs, rh-nodejs8-nodejs-devel and 1 more0:8.16.0-1.el7RHSA-2019:1821
Red Hatrhel_software_collections:3::el7rh-nodejs8-npm0:6.4.1-8.16.0.1.el7RHSA-2019:1821
SUSEEnterprise Storage 4, Linux Enterprise Module for Web and Scripting 12nodejs44.9.1-15.17.1SUSE-SU-2019:0117-1
SUSEEnterprise Storage 4, Linux Enterprise Module for Web and Scripting 12, OpenStack Cloud 7 and 1 morenodejs66.16.0-11.21.1SUSE-SU-2019:0395-1
SUSELinux Enterprise Module for Web and Scripting 15nodejs88.15.0-3.11.1SUSE-SU-2019:0118-1
SUSELinux Enterprise Server 11 SP4-LTSSMozillaFirefox68.2.0-78.51.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSMozillaFirefox-branding-SLED68-21.9.8SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-atk2.26.1-2.8.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-cairo1.15.10-2.13.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-gdk-pixbuf2.36.11-2.8.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-glib22.54.3-2.14.7SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-gtk33.10.9-2.15.3SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-harfbuzz1.7.5-2.7.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-libffi3.2.1.git259-2.3.3SUSE-SU-2019:14246-1
4 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.0nodejs88.15.0-lp150.2.9.1openSUSE-SU-2019:0089-1
Alpinev3.8nodejs8.14.0-r0ALPINE-CVE-2018-12123
Alpinev3.9, v3.10, v3.11 and 13 morenodejs10.14.0-r0ALPINE-CVE-2018-12123
Alpinev3.9, v3.10, v3.11 and 13 morenodejs-current11.3.0-r0ALPINE-CVE-2018-12123

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

The nodejs RPMs shipped in Red Hat OpenShift Container Platform (OCP) versions 3.6 through 3.10 are vulnerable to this flaw because they contain the affected code. Later versions of OCP used nodejs RPMs delivered from Red Hat Software Collections and Red Hat Enterprise Linux channels.

ProductPackageStateAdvisory
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs8-nodejs-0:8.16.0-1.el7Fixed 2019-07-22RHSA-2019:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs10-0:3.2-3.el7Fixed 2019-10-01RHSA-2019:2939
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs10-nodejs-0:10.16.3-3.el7Fixed 2019-10-01RHSA-2019:2939
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-nodejs8-nodejs-0:8.16.0-1.el7Fixed 2019-07-22RHSA-2019:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-nodejs8-nodejs-0:8.16.0-1.el7Fixed 2019-07-22RHSA-2019:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-nodejs10-0:3.2-3.el7Fixed 2019-10-01RHSA-2019:2939
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-nodejs10-nodejs-0:10.16.3-3.el7Fixed 2019-10-01RHSA-2019:2939
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs8-nodejs-0:8.16.0-1.el7Fixed 2019-07-22RHSA-2019:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs10-0:3.2-3.el7Fixed 2019-10-01RHSA-2019:2939
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs10-nodejs-0:10.16.3-3.el7Fixed 2019-10-01RHSA-2019:2939
Red Hat Enterprise Linux 8nodejsNot affected
Red Hat OpenShift Application RuntimesnodejsNot affected
Red Hat OpenShift Container Platform 3.10nodejsFix deferred
Red Hat OpenShift Container Platform 3.2nodejsOut of support scope
Red Hat OpenShift Container Platform 3.3nodejsOut of support scope
Red Hat OpenShift Container Platform 3.4nodejsOut of support scope
Red Hat OpenShift Container Platform 3.5nodejsOut of support scope
Red Hat OpenShift Container Platform 3.6nodejsFix deferred
Red Hat OpenShift Container Platform 3.7nodejsOut of support scope
Red Hat OpenShift Container Platform 3.9nodejsFix deferred
4 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-12123.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON