Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential Issue with jQuery Version in Mojolicious Public Files #2197

Open
stomoiaga-bd opened this issue Sep 13, 2024 · 1 comment
Open

Comments

@stomoiaga-bd
Copy link

stomoiaga-bd commented Sep 13, 2024

  • Mojolicious version: v9.14
  • Perl version: 5.30.0
  • Operating system: Ubuntu 20.04

Steps to reproduce the behavior

  1. Clone the Mojolicious repository.
  2. Navigate to the file located at /Mojolicious/resources/public/mojo/jquery/jquery.js.
  3. The jQuery version found here is 3.4.0, which is vulnerable to CVE-2020-11022.

Expected behavior

Mojolicious should use jQuery version 3.5.0 or later in all public-facing assets to avoid exposure to known vulnerabilities.

Actual behavior

The file /Mojolicious/resources/public/mojo/jquery/jquery.js references jQuery version 3.4.0, which is vulnerable to security issues, including CVE-2020-11022. Updating to version 3.5.0 or later is recommended to mitigate this risk.

@kraih
Copy link
Member

kraih commented Sep 13, 2024

There is nothing in Mojolicious that could be exploited with a frontend JavaScript library. We should probably upgrade at some point though or remove jQuery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants