Socket
Book a DemoInstallSign in
Socket

isvalid-legacy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isvalid-legacy

Fork isvalid 1.6.7 - Patch merge 1.2.2 CVE (Prototype Pollution) The Unkillable Fork

1.4.6
latest
Source
npmnpm
Version published
Weekly downloads
354
-14.49%
Maintainers
1
Weekly downloads
 
Created
Source

🚀 isvalid 1.6.7 - The Unkillable Fork 🏴‍☠️

💀 Because Updating Code is for the Weak 💀

So, you’ve got a 10-year-old codebase held together by duct tape, dreams, and a million custom validations? Guess what? SAME.

This is a patched fork of isvalid@1.6.7, which originally depended on the infamously insecure merge@1.2.1. We fixed that mess by upgrading to merge@2.1.1 and removing the risky deep merge operation.

Updating to a new library? Nah. Refactoring millions of validations? LOL, NO.

If you’ve found this repo, chances are:
✅ You’re stuck with legacy code.
✅ You have no time, energy, or patience to rewrite everything.
✅ You just want it to work without security nightmares.

Well, congratulations! You don’t have to choose between security and sanity. This patched version lets you keep using isvalid without getting wrecked by prototype pollution attacks.

🛠 What’s Changed?

  • 🔒 Fixed the CVE in merge@1.2.1 by upgrading to merge@2.1.1
  • ⚡ Removed deep merging in lib/schema.js
    • Before:
      var formalizedSchema = merge(true, schema);
      
    • After:
      let formalizedSchema = {};
      for (let key in schema) {
          formalizedSchema[key] = schema[key];
      }
      
  • 🦾 Keeps the isvalid@1.6.7 API (because breaking changes are evil)
  • 🚀 No refactoring required – drop it in and move on with your life

🚧 Installation

npm install isvalid-legacy

🤔 Why Not Just Upgrade?

Because:

  • Your code is older than some of team mates junior devs.
  • You have better things to do.
  • Touching this code might summon the demons of tech debt.

🛑 Disclaimer

This package is basically a band-aid on a time bomb. But hey, at least it's a patched time bomb.

🚀 Enjoy your legacy code—safely! 🏴‍☠️

Keywords

schema

FAQs

Package last updated on 26 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.