CVE-2018-18405
jQuery v2.2.2 allows XSS via a crafted onerror attribute of an IMG element.
CVE-2018-18405 is a medium vulnerability (CVSS 6.1) in Jquery, published April 22, 2020. Its validity is disputed. EPSS puts the chance of exploitation in the next 30 days at 1.66%, the 76th percentile.
jQuery v2.2.2 allows XSS via a crafted onerror attribute of an IMG element. NOTE: this vulnerability has been reported to be spam entry
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.1
jQuery v2.2.2 allows XSS via a crafted onerror attribute of an IMG element. NOTE: this vulnerability has been reported to be spam entry
- Record
CVE-2018-18405- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE List No score
jQuery v2.2.2 allows XSS via a crafted onerror attribute of an IMG element. NOTE: this vulnerability has been reported to be spam entry
- Record
CVE-2018-18405- Updated
- 2026-11-02
EUVDEUVD-2018-10134 No score
jQuery v2.2.2 allows XSS via a crafted onerror attribute of an IMG element. NOTE: this vulnerability has been reported to be spam entry
- Record
EUVD-2018-10134- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-9p3r-vprr-2c27
6.1
jQuery v2.2.2 allows XSS via a crafted onerror attribute of an IMG element.
jQuery v2.2.2 allows XSS via a crafted onerror attribute of an IMG element.
- Record
GHSA-9p3r-vprr-2c27- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
6.1
jQuery v2.2.2 allows XSS via a crafted onerror attribute of an IMG element. NOTE: this vulnerability has been reported to be spam entry
- Record
CVE-2018-18405- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
Affected products
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
gist.github.com/CyberSecurityUP/26c5b032897630fe8407da4a8ef216d4
twitter.com/DanielRufde/status/1255185961866145792
gitter.im/jquery/jquery?at=5ea844a05cd4fe50a3d7ddc9
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VOE7P7APPRQKD4FGNHBKJPDY6FFCOH3W
nvd.nist.gov/vuln/detail/CVE-2018-18405
br.linkedin.com/in/joas-antonio-dos-santos
lists.fedoraproject.org/archives/list/[email protected]/message/VOE7P7APPRQKD4FGNHBKJPDY6FFCOH3W
github.com/advisories/GHSA-9p3r-vprr-2c27