Outdated front-end JavaScript library detection and CVE mapping — enumerate every client-side JS lib and exact version (retire.js, source maps, bundle parsing), map to known CVEs (XSS, prototype pollution, ReDoS), and cross-reference vulnerable-components. Tier 1. Use on any web app with client-side JS.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Retirejs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-retirejs)
---
name: retirejs
description: Outdated front-end JavaScript library detection and CVE mapping — enumerate every client-side JS lib and exact version (retire.js, source maps, bundle parsing), map to known CVEs (XSS, prototype pollution, ReDoS), and cross-reference vulnerable-components. Tier 1. Use on any web app with client-side JS.
---
# Outdated JS Library Detection (retire.js → CVEs)
Front-end libraries (jQuery, Angular, Vue, Lodash, Moment, Bootstrap, DOMPurify, etc.) ship known CVEs — prototype pollution, DOM XSS sinks, ReDoS. Enumerate every lib + exact version, then map to its vulnerable range.
## Trigger phrases
`retire.js, retirejs, outdated js, javascript library, jquery version, client-side cve, js dependency, prototype pollution lib, dom xss sink`
## Method
1. **Collect all scripts:** crawl the app (`hakrawler`/`katana`/Burp), pull every `<script src>` and inline bundle. Include third-party/CDN widgets, analytics, chat SDKs (supply-chain surface).
2. **Version-detect per lib:**
- `retire.js` against the live site: `retire --js --outputformat json --path ./downloaded_js` or the browser extension.
- Parse bundle filenames (`jquery-3.4.1.min.js`), inline version banners/comments, `/*! lib vX */`, webpack chunk hashes.
- **Source maps (`.js.map`)**: append `.map` to each bundle; `sourcesContent` + any embedded `package.json` reveal the full dependency tree and exact versions (also secrets/endpoints).
- Wappalyzer / `nuclei -t http/technologies/`.
3. **Map to CVEs (confirm range):** NVD/GHSA/OSV/Snyk per lib+version. Common high-signal: jQuery `<3.5.0` XSS (CVE-2020-11022/11023), Lodash prototype pollution (CVE-2019-10744 `<4.17.12`), Moment ReDoS (CVE-2022-31129), Angular/Vue known XSS, Bootstrap data-* XSS, DOMPurify bypass versions, `serialize-javascript`, `handlebars`.
4. **Confirm exploitability:** don't stop at version — reach the vulnerable sink. jQuery `$()`/`html()` with attacker HTML → `dom-xss`; Lodash merge/set reachable from user input → `prototype-pollution`; ReDoS only if the pattern processes attacker input.
## Modern / rare techniques
- **Source-map–driven dep tree:** reconstruct `node_modules` names from maps → also feeds `dependency-confusion` (internal package names) and `supply-chain`.
- **Transitive libs** inside bundles are easy to miss — retire.js on the concatenated bundle catches versions that headers don't show.
- Vendored/renamed copies: fingerprint by code signature when the filename is stripped.
## Bypass / evasion
N/A (passive detection). Fetch via headless browser if lazy-loaded; de-minify to read version banners.
## Escalation / chaining
→ `dom-xss`/`web-xss`, `prototype-pollution`/`server-side-prototype-pollution`, `vulnerable-components` (full SBOM), `dependency-confusion`/`supply-chain` (names from maps).
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike) or headless browser (client-side). retire.js, katana/hakrawler, source-map-explorer, nuclei. See `zazy-orchestrator`.
## Verification (background, before reporting)
Confirm the version via a second method (map + filename), validate it falls in the vulnerable range, and prove the sink is reachable before scoring as exploitable (vs hygiene-only). Report true positives only.
## Evidence
Lib inventory with versions + evidence source, CVE IDs with affected/fixed ranges, reachable-sink PoC where exploitable. Remediation: upgrade libs to fixed versions, remove unused, use SRI, pin CDN versions, add SCA to CI.