codebase-shared-functions
This report shows the evidence for codebase-shared-functions@2.1.1. 1 of 2 known versions is blocked or flagged. See all versions.
AI Security Review
scanned 4d ago · by lpm-firewall-aiThe exported mail function forwards the environment's DigitalOcean API token to a publisher-selected Serverless action endpoint. This is credential exfiltration when the function is invoked, so the package should be blocked.
Decision evidence
public snapshot- sendMail constructs a request to a hard-coded DigitalOcean Serverless action endpoint.
- sendMail places process.env.DO_API_TOKEN in the Authorization header and posts the request to that endpoint.
- The package entry point exposes sendMail, making this credential transfer reachable to package consumers.
- The credential transfer occurs when sendMail is called, not in an install lifecycle script.
- The package has no install, preinstall, or postinstall script.
Source & flagged code
6 flaggedSource appears to send environment or credential material to an external endpoint.
src/mailer.jsView on unpkg · L1A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
src/mailer.jsView on unpkg · L1Findings
Affected versions and remediation
This report applies to codebase-shared-functions@2.1.1.
The versions list below shows the verdict for each recorded version.
- Avoid installing codebase-shared-functions@2.1.1. 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: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.