Skip to content
Back to skills

Retirejs

ASecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 17, 2026
securityjavascriptjavavueangularnodebackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill retirejs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Retirejs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Retirejs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-retirejs/badge)](https://www.skillsdirectory.com/skills/anandjogawade-retirejs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.