mock-datas-lib@1.0.1
OpenSSF/OSV malicious advisory
published · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-18637 confirms this npm version as malicious.
OpenSSF/OSV advisory MAL-2026-18637 confirms this npm version as malicious.
LPM's AI review found this version suspicious. That disagrees with the OpenSSF/OSV advisory, which supplies the block.
The package is presented as a mock data generator, but calling its main API also executes concealed, dynamically decoded code with Node.js access. The payload’s purpose is not established, so this warrants a warning rather than a malicious verdict.
Where they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
index.js3 highindex.js3 findingsload_transaction_data decodes data from database.js into a string that it treats as code.
That function executes the decoded string with the Function constructor and passes it Buffer, require and process.
getTransactions calls the payload loader, which schedules execution after 100 ms.
This report applies to mock-datas-lib@1.0.1.
See all versions of mock-datas-lib for other recorded verdicts.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.