Knowledge base

Why a known vulnerability does not always mean you are exploitable

A vulnerability in a library is a weakness in some of its functions. Whether your site is at risk depends on how your own code uses the library.

  • A cross-site scripting bug in jQuery's htmlPrefilter only matters if your code passes text from visitors into the affected functions.
  • A prototype-pollution bug in Lodash's merge only matters if untrusted data reaches merge.
  • A regular-expression denial-of-service bug in Moment only matters if visitors can send long date strings to it.

Protectory reports the version and the advisories; it cannot see how your code calls the library. That is why the finding says "known vulnerability", not "your site is hacked".

What to do anyway

Updating is usually the cheapest way to remove the question: the fix prompt shows the exact version to move to and how to test it. If an update is not possible right now, read the advisory, check whether your code uses the affected function, and decide consciously - you can mark the finding as accepted with a note.

See also Vulnerable JavaScript libraries: what the finding means.

Last reviewed Oct 14, 2026, 12:00:00 AM

Still stuck? Send a ticket

Feedback
Type