transformers-js
Warn
Audited by Snyk on Aug 26, 2026
Risk Level: MEDIUM
Full Analysis
MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).
- Third-party content exposure detected (medium risk: 0.30). The required runtime workflow (e.g., the “Express API” example in references/EXAMPLES.md) ingests outsider-authored free text from
req.body.textsubmitted via an HTTP POST to/embed, which is then passed directly into the Transformers.js pipeline for inference.
MEDIUM W012: Unverifiable external dependency detected (runtime URL that controls agent).
- Potentially malicious external URL detected (high risk: 0.80). The skill includes runtime imports of remote executable assets (browser JS and WASM) — e.g., the transformers library loaded from https://cdn.jsdelivr.net/npm/@huggingface/transformers (and https://cdn.jsdelivr.net/npm/@huggingface/transformers@4) and the ONNX WASM path https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ — which are fetched and executed at runtime from third-party CDNs.
Issues (2)
W011
MEDIUMThird-party content exposure detected (indirect prompt injection risk).
W012
MEDIUMUnverifiable external dependency detected (runtime URL that controls agent).
Audit Metadata