SecurityContext

CVE-2018-14731: Parcel - Origin Check Bypass

  • Cve: CVE-2018-14731
  • Name: Parcel - Origin Check Bypass
  • Description: An issue was discovered in HMRServer.js in Parcel parcel-bundler. Attackers are able to steal developer's code because the origin of requests is not checked by the WebSocket server, which is used for HMR (Hot Module Replacement). Anyone can receive the HMR message sent by the WebSocket server via a ws://127.0.0.1 connection (with a random TCP port number) from any origin. The random port number can be found by connecting to http://127.0.0.1 and reading the "new WebSocket" line in the source code.
  • Impact: Attackers can steal developer's code by intercepting HMR messages, leading to potential code theft and intellectual property loss.
  • Remediation: Implement proper origin validation in the WebSocket server to restrict connections to trusted origins.
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.02327
  • Epss percentile: 0.83943
  • Assignee: [email protected]
  • Published at: 2018-09-21T17:29:05Z
  • Age in days: 2986
  • Modified at: 2026-06-17T01:41:32Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-14731
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-200Exposure of Sensitive Information to an Unauthorized Actor

Public exploits

UrlSourceAdded date
https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messagesnvd2018-09-21
https://github.com/parcel-bundler/parcel/pull/1794nvd2018-09-21

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/parcel-bundler/parcel/pull/1794Exploit, Patch, Vendor Advisory
https://github.com/parcel-bundler/parcel/issues/1783Vendor Advisory
https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20MessagesExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
parceljs:parcelall versionsnonvd/v1/products/parceljs/parcel

Projects

RepositoryLink kindsIndexedUrl
parcel-bundler/parcelcommit, fix, issues, package, pullyes/v1/repositories/parcel-bundler/parcel

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2018-09-21
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts