What AuditX checks
During the crawl the scan reads the script tags in the HTML of each page and picks the library version out of the file address. It knows six libraries: jQuery, Bootstrap, AngularJS, Lodash, Moment.js and Handlebars. A version is only read when the address contains a three-part number such as 3.6.0 within 16 characters of the library name, for example jquery-3.6.0.min.js or jquery.min.js?ver=3.7.1. Pages that returned a status of 400 or higher are skipped, and so are scripts that carry no version in their address. The check then compares the versions of each library across the pages. It is always an info note and never lowers the score. When two or more versions of the same library appear, the note names the versions, how many pages use each and up to two example addresses. When every page uses the same version, or no page loads a library with a visible version, the note says so. If the crawl did not finish, the note says it could not be checked and is marked as not measured, and an unmeasured check limits its category score to 79 for that scan. The check does not say whether a version is vulnerable, because the separate vulnerable library check does that. It reads the HTML as delivered, so a script added later by JavaScript is not seen, and it does not read the version from inside a file or from a bundle. A crawl covers a limited number of pages, so a page it did not visit is not compared.
Why it matters
OWASP lists vulnerable and outdated components among the top web application risks, and says a site is likely at risk if it does not know the versions of all components it uses. A page that still loads an older copy is easy to miss.
Lighthouse used to flag front-end libraries with known security vulnerabilities and advised upgrading to the release that fixes them. If one page loads a newer copy, the pages on the older copy miss the same fix.
How to fix it
- Open the pages the report names and find the script tag that loads the older version. View the page source and search for the library name.
- Check which template, theme or plugin adds that tag. A checkout, a landing page builder or an old plugin often brings its own copy.
- Update that source to the same release as the rest of the site, then test the page, because a major version change can break old code.
- If a second version is deliberate, write down why, and plan to retire it.
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my siteSources
- OWASP Top 10: Vulnerable and Outdated Components
- Lighthouse: Includes front-end JavaScript libraries with known security vulnerabilities