pdf-lib-enhanced
This report shows the evidence for pdf-lib-enhanced@2.2.0, the only known version.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-4799 confirms this npm version as malicious.
Advisory
MAL-2026-4799
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in pdf-lib-enhanced (npm)
Details
Package name `pdf-lib-enhanced` mimics the widely-used `pdf-lib` library and ships a verbatim copy of upstream's README. `package.json` declares `repository.url` pointing at a fresh GitHub account (`harunosakura030303-maker/pdf-lib-enhanced`) while `bugs.url` still points at the original `Hopding/pdf-lib` project — a metadata mismatch consistent with a hastily-forked squat. The `dist/` directory contains unrelated SheetJS assets (`xlsx.full.min.js`, `xlsx.zahl.js`, `cpexcel.js`, etc.) that have no purpose in a PDF library. However, the CommonJS main entry (`cjs/index.js`) re-exports the upstream pdf-lib API without any credential reads, exfiltration, dropper, or silent-relay behavior, and `package.json` declares no `preinstall`/`install`/`postinstall`/`prepare` lifecycle scripts, so installing the package does not auto-execute any code. The dormant SheetJS bundles are not referenced from the main entry. Name-similarity to a top-tier package combined with an irrelevant payload bundle warrants human assessment of intent, but there is no concrete installer-harm mechanism observable in the shipped code.
## Source: ghsa-malware (a4da0334724e86909030ba354dab57e4c522c139a925d3ec06559541179c562e) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
References
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to pdf-lib-enhanced@2.2.0.
The versions list below shows the verdict for each recorded version.
- Avoid installing pdf-lib-enhanced@2.2.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.