CVE-2018-14730: Missing Origin Validation in browserify-hmr

browserify-hmr Updated 02 Oct 2025

Summary

01/09/2020
Yes i
High
7.5

CVE-2018-14730: Missing Origin Validation in browserify-hmr. Affects browserify-hmr versions < 0.4.0. Fixed in 0.4.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The browserify-hmr package is a tool used for Hot Module Replacement (HMR) in the browserify ecosystem. HMR allows developers to update modules in real-time without requiring a full page reload. It enhances the development experience by providing faster feedback and reducing the need for manual refreshes. However, versions prior to 0.4.0 of browserify-hmr are vulnerable to a missing origin validation issue on the websocket server.

Vulnerability Detail

The missing origin validation vulnerability in browserify-hmr allows a remote attacker to steal a developer's source code. This occurs because the origin of requests to the websocket server used for HMR is not properly validated. By exploiting this vulnerability, an attacker can send malicious requests to the websocket server and gain unauthorized access to the developer's source code. This can lead to the exposure of sensitive information and potential misuse of the source code.

How To Fix

Latest published version: 0.4.1 as of 22 Oct 2026

npm install browserify-hmr@0.4.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.4.0

This is the first release that contains the fix.

npm install browserify-hmr@0.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The missing origin validation vulnerability in browserify-hmr can lead to the theft of a developer's source code. To mitigate this risk, it is crucial to upgrade to version 0.4.0 or later of the package. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for browserify-hmr →

Share this vulnerability

FAQ

browserify-hmr is a package used for Hot Module Replacement (HMR) in the browserify ecosystem. It enables developers to update modules in real-time without requiring a full page reload.

The vulnerability allows remote attackers to steal a developer's source code. This can lead to the exposure of sensitive information and potential misuse of the source code.

To fix this vulnerability, upgrade to version 0.4.0 or later of browserify-hmr.

No specific workarounds have been provided for this vulnerability. It is recommended to upgrade to the fixed version.

How To Fix

Latest published version: 0.4.1 as of 22 Oct 2026

npm install browserify-hmr@0.4.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.4.0

This is the first release that contains the fix.

npm install browserify-hmr@0.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback