Vulnerability library
Security checkNovember 04, 2025

XSS in the `of` option of the `.position()` util in jquery-ui

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmjquery-ui

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Accepting the value of the of option of the .position() util from untrusted sources may execute untrusted code. For example, invoking the following code:

will call the doEvilThing() function.

Recommendation

Update the jquery-ui package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.13.0
  • Patched version(s): 1.13.0

References

Could your website be exposed too?

SmartScanner can check your website for XSS in the `of` option of the `.position()` util in jquery-ui and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 04, 2025