Intel

AIKIDO-2025-10922

n-readlines is vulnerable to Use of Obsolete Function

Use of Obsolete Function Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 11, 2025

60

Medium Risk

This Affects:

JSn-readlines
0.1.0 - 1.0.1
Fixed in 2.0.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package contain a vulnerability titled Use of Deprecated and Insecure Buffer Constructor, where the code utilizes the deprecated new Buffer() constructor instead of the safer Buffer.alloc(). This deprecated constructor, under certain conditions, can return a Buffer containing uninitialized memory from the heap. An attacker could exploit this by manipulating the application to read chunks of data, potentially leaking sensitive information like encryption keys, session tokens, or other process memory contents into the returned buffer.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

n-readlines is vulnerable to Use of Obsolete Function in versions 0.1.0 - 1.0.1.

How to fix this

Upgrade the n-readlines library to the patch version.