Frontend bundles carry hidden attack surface through outdated third-party dependencies, unhashed CDN scripts, and exposed source maps that reconstruct application source code.
| Check | What gets audited |
|---|---|
| Outdated library advisories | Inspects script filenames and bundle banners using the built-in advisory pack covering jQuery, Lodash, Bootstrap, AngularJS, Vue 2, Moment, Handlebars, DOMPurify, Axios, Marked, and Underscore. |
| Custom advisory extension | Loads organizational CVEs or internal minimum versions with --advisories advisories.json or script_version rules inside --rules. |
| SRI hashes and HTML links | Flags external scripts missing integrity hashes (HTML-MISSING-SRI), cleartext subresources on HTTPS pages (HTML-MIXED-CONTENT), target="_blank" links missing rel="noopener" (HTML-TARGET-BLANK), HTTP password forms (HTML-PASSWORD-HTTP), and POST forms missing CSRF token names (HTML-FORM-NO-CSRF-FIELD). |
| Source maps and route discovery | Extracts internal /api/ path hints and flags exposed .js.map source maps returned with valid JSON source map fields. |
web-vuln-scanner https://example.com --advisories my-advisories.json --rules rules.example.json
Public source maps let anyone recover unminified TypeScript or JavaScript source files, internal comments, and unpublished route logic. Upload source maps privately to your error tracker instead of serving them in production.
It inspects HTML POST forms for common CSRF input names. Note that API-backed apps using JSON fetches with bearer tokens do not rely on hidden HTML form fields.
Check those same JavaScript bundles for embedded API keys and tokens.
Restrict script execution domains with a strict Content Security Policy.
Learn how script_version custom rules enforce minimum library versions.