ubuntu-cve-2022-31160
Vulnerability from osv_ubuntu
Published
2022-07-20 20:15
Modified
2025-10-24 04:53
Summary
Details
jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Versions prior to 1.13.2 are potentially vulnerable to cross-site scripting. Initializing a checkboxradio widget on an input enclosed within a label makes that parent label contents considered as the input label. Calling .checkboxradio( "refresh" ) on such a widget and the initial HTML contained encoded HTML entities will make them erroneously get decoded. This can lead to potentially executing JavaScript code. The bug has been patched in jQuery UI 1.13.2. To remediate the issue, someone who can change the initial HTML can wrap all the non-input contents of the label in a span.
Severity
6.1 (Medium)
6.1 (Medium)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "libjs-jquery-ui",
"binary_version": "1.12.1+dfsg-5ubuntu0.18.04.1~esm2"
},
{
"binary_name": "libjs-jquery-ui-docs",
"binary_version": "1.12.1+dfsg-5ubuntu0.18.04.1~esm2"
},
{
"binary_name": "node-jquery-ui",
"binary_version": "1.12.1+dfsg-5ubuntu0.18.04.1~esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "jqueryui",
"purl": "pkg:deb/ubuntu/jqueryui@1.12.1+dfsg-5ubuntu0.18.04.1~esm2?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12.1+dfsg-5ubuntu0.18.04.1~esm2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.12.1+dfsg-5"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "libjs-jquery-ui",
"binary_version": "1.12.1+dfsg-5ubuntu0.20.04.1"
},
{
"binary_name": "libjs-jquery-ui-docs",
"binary_version": "1.12.1+dfsg-5ubuntu0.20.04.1"
},
{
"binary_name": "node-jquery-ui",
"binary_version": "1.12.1+dfsg-5ubuntu0.20.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "jqueryui",
"purl": "pkg:deb/ubuntu/jqueryui@1.12.1+dfsg-5ubuntu0.20.04.1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12.1+dfsg-5ubuntu0.20.04.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.12.1+dfsg-5"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "libjs-jquery-ui",
"binary_version": "1.12.1+dfsg-5ubuntu0.20.04.1~esm3"
},
{
"binary_name": "libjs-jquery-ui-docs",
"binary_version": "1.12.1+dfsg-5ubuntu0.20.04.1~esm3"
},
{
"binary_name": "node-jquery-ui",
"binary_version": "1.12.1+dfsg-5ubuntu0.20.04.1~esm3"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "jqueryui",
"purl": "pkg:deb/ubuntu/jqueryui@1.12.1+dfsg-5ubuntu0.20.04.1~esm3?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12.1+dfsg-5ubuntu0.20.04.1~esm3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.12.1+dfsg-5",
"1.12.1+dfsg-5ubuntu0.1~esm2"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "libjs-jquery-ui",
"binary_version": "1.13.1+dfsg-1ubuntu0.1~esm1"
},
{
"binary_name": "libjs-jquery-ui-docs",
"binary_version": "1.13.1+dfsg-1ubuntu0.1~esm1"
},
{
"binary_name": "node-jquery-ui",
"binary_version": "1.13.1+dfsg-1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:22.04:LTS",
"name": "jqueryui",
"purl": "pkg:deb/ubuntu/jqueryui@1.13.1+dfsg-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.13.1+dfsg-1ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.12.1+dfsg-8",
"1.13.0+dfsg-1",
"1.13.1+dfsg-1"
]
}
],
"aliases": [],
"details": "jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Versions prior to 1.13.2 are potentially vulnerable to cross-site scripting. Initializing a checkboxradio widget on an input enclosed within a label makes that parent label contents considered as the input label. Calling `.checkboxradio( \"refresh\" )` on such a widget and the initial HTML contained encoded HTML entities will make them erroneously get decoded. This can lead to potentially executing JavaScript code. The bug has been patched in jQuery UI 1.13.2. To remediate the issue, someone who can change the initial HTML can wrap all the non-input contents of the `label` in a `span`.",
"id": "UBUNTU-CVE-2022-31160",
"modified": "2025-10-24T04:53:40Z",
"published": "2022-07-20T20:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2022-31160"
},
{
"type": "REPORT",
"url": "https://github.com/jquery/jquery-ui/security/advisories/GHSA-h6gj-6jjq-h8g9"
},
{
"type": "REPORT",
"url": "https://github.com/jquery/jquery-ui/commit/8cc5bae1caa1fcf96bf5862c5646c787020ba3f9"
},
{
"type": "REPORT",
"url": "https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-5181-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6419-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2022-31160"
}
],
"related": [
"USN-5181-1",
"USN-6419-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2022-31160"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…