Security

Update the binary-parser npm Package to 2.3.1 or Later

Leave a comment

The maintainer of the binary-parser npm package has published a security advisory, and the fix is to update to 2.3.1 or later. The Hacker News has also covered the issue, tracked as CVE-2026-134814. I am staying high-level on purpose.

A previous fix, for CVE-2026-1245, tightened validation of field names and encodings. The new advisory says that was not enough: other string-typed options in a parser definition could still make it into generated parser code. The people who need to care are projects that build parsers from untrusted definitions, for example schema- or JSON-driven setups. The advisory is explicit that parsing untrusted binary data with a trusted parser definition is not affected. I am not going to list the option names or show how a bad definition would be written.

My take

If binary-parser is in your lockfile, bump it to 2.3.1 or newer and ship that. If you accept parser definitions from users or from a file you do not control, treat this as more urgent than a routine dependency bump. If you only ever load a parser you wrote yourself, you are outside the affected case the maintainer described, but updating is still the simple move.

Review before you install: read the release notes yourself, back up your config, and try new versions somewhere you can afford to break first.

God Bless, and Use the Source!

References & Further Reading

Subscribe (RSS) Follow Security via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.