Security Advisory : Kerentanan pada jQuery (CVE-2020-11023)
Summary
A vulnerability was discovered in jQuery (CVE-2020-11023) affecting DOM manipulation methods. This vulnerability allows arbitrary JavaScript code execution when processing untrusted HTML input, even after sanitation has been performed.
Affected Products
- jQuery versions >= 1.0.3, < 3.5.0
Technical Details
The vulnerability resides in jQuery DOM manipulation methods such as .html(), .append(), and others in versions 1.0.3 through 3.4.x due to improper processing of HTML containing elements.
Impact
Execution of arbitrary JavaScript code (Cross-Site Scripting / XSS) when processing untrusted HTML input, even after a sanitation process has taken place.
Mitigation
- Update and upgrade jQuery to version 3.5.0 or later.
- Implement strict input validation and sanitation, specifically for elements, before HTML is passed to jQuery DOM manipulation methods.
- Use the
text()method instead ofhtml()when handling user-derived content.
References
- Security Advisory: Vulnerability in jQuery (CVE-2020-11023)
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.