ubuntu-cve-2022-31160
Vulnerability from osv_ubuntu
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.
{
"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"
]
}
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.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.