Skip to content

Potential Vulnerability in Cloned Code#3352

Open
navnitan-7 wants to merge 1 commit into
apache:masterfrom
navnitan-7:fix/cve-2015-9251-jquery-ajax
Open

Potential Vulnerability in Cloned Code#3352
navnitan-7 wants to merge 1 commit into
apache:masterfrom
navnitan-7:fix/cve-2015-9251-jquery-ajax

Conversation

@navnitan-7
Copy link
Copy Markdown

@navnitan-7 navnitan-7 commented Mar 30, 2026

Summary

Patches CVE-2015-9251 (jQuery ajax / ajaxConvert cross-domain script handling) in the vendored jQuery 1.12.4 copy at static/jquery/jquery.js.

Changes

Impact

Reduces risk of executing attacker-controlled script content when dataType was not explicitly script on cross-origin requests.

References

Mirror upstream jQuery apachegh-2432 fix in vendored ajaxConvert: skip automatic
script conversion on cross-domain responses unless dataType was explicit.

Refs: jquery/jquery@2546bb3
Made-with: Cursor
@sonarqubecloud
Copy link
Copy Markdown

@deacon-mp
Copy link
Copy Markdown
Contributor

deacon-mp commented Apr 3, 2026

@navnitan-7 I don't think we need Jquery at all anymore and the only file of concern that this would impact thats still in use is Weather.html which could be rewritten in pure vanilla JS. Then we could just remove this entire static/jquery directory.

Did you want to try and rewrite weather.html? Its fairly small and managable.

@navnitan-7
Copy link
Copy Markdown
Author

Thanks for the suggestion that makes sense. I agree that removing the dependency on jQuery and cleaning up the static/jquery directory would be a good long-term improvement.

I'm happy to take a shot at rewriting jquery dependency into vanila js.

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

Successfully merging this pull request may close these issues.

2 participants