Vulnerabilities in pkg:pypi/collective.contact.widget
PACKAGECVE-2022-4638 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-707: Improper Neutralization) affecting Collective.contact.widget libraries in the PyPI ecosystem. The issue involves collective.contact.widget is vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 1.13.
pkg:pypi/collective.contact.widget
Vulnerability advisories affecting package pkg:pypi/collective.contact.widget. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5pqf-rvm7-3wgw | CVE-2022-4638 | MODERATE | collective.contact.widget is vulnerable to cross-site scripting |
CVE-2022-4638 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2022-4638
To remediate this vulnerability, upgrade all affected Collective.contact.widget dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install collective.contact.widget>=1.13
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show collective.contact.widget
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2022-4638, inspect your installed packages using pip:
pip show collective.contact.widget
Analyze the terminal output to locate any version of Collective.contact.widget in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13), your application is affected.
Note: The pip show collective.contact.widget command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-707: Improper Neutralization, where the product does not ensure or incorrectly ensures that structured messages or data are well-formed and that certain security properties are met before being read from an upstream component or sent to a downstream component. In Collective.contact.widget, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-4638 Affected Collective.contact.widget Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
collective.contact.widget
|
PyPI |
< 1.13
|
1.13
|
References
Frequently Asked Questions
What is CVE-2022-4638?
Which Collective.contact.widget versions are affected?
What version fixes CVE-2022-4638?
Is collective.contact.widget affected?
What is the CVSS score of CVE-2022-4638?
What CWE is associated with CVE-2022-4638?
How can I check PyPI dependencies for CVE-2022-4638?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5pqf-rvm7-3wgw",
"modified" : "2024-09-13T14:38:04Z",
"published" : "2022-12-22T00:30:36Z",
"aliases" : [ "CVE-2022-4638" ],
"summary" : "collective.contact.widget is vulnerable to cross-site scripting ",
"details" : "collective.contact.widget is an add-on is part of the collective.contact.* suite. A vulnerability classified as problematic was found in collective.contact.widget up to 1.12. This vulnerability affects the function title of the file src/collective/contact/widget/widgets.py. The manipulation leads to cross site scripting. The attack can be initiated remotely. The name of the patch is 5da36305ca7ed433782be8901c47387406fcda12. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-216496.",
"severity" : [ {
"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_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "collective.contact.widget"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.13"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-4638"
}, {
"type" : "WEB",
"url" : "https://github.com/collective/collective.contact.widget/commit/5da36305ca7ed433782be8901c47387406fcda12"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/collective/collective.contact.widget"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/collective-contact-widget/PYSEC-2022-42988.yaml"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.216496"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-707", "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-29T00:36:20Z",
"nvd_published_at" : "2022-12-21T22:15:00Z"
}
}