Vulnerabilities in pkg:pypi/collective.contact.widget

PACKAGE
Advisory Identifier: GHSA-5pqf-rvm7-3wgw
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/collective.contact.widget

1 Known Advisory Record(s)

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

CVE Identifier CVE-2022-4638
GHSA Identifier GHSA-5pqf-rvm7-3wgw
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-707: Improper Neutralization
Affected Product Collective.contact.widget
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

collective.contact.widget fixed: 1.13
pip install collective.contact.widget>=1.13
Verify Direct and Transitive Dependencies

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

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.

CVE-2022-4638 Affected Collective.contact.widget Versions

1 component(s)
Fixed Versions:
1.13
Product / Package Ecosystem Affected Versions Fixed Version
collective.contact.widget
PyPI
< 1.13
1.13

References

Frequently Asked Questions

What is CVE-2022-4638?
CVE-2022-4638 is a security vulnerability in Collective.contact.widget involving collective.contact.widget is vulnerable to cross-site scripting under CWE-707: Improper Neutralization.
Which Collective.contact.widget versions are affected?
Affected versions include releases prior to 1.13 across affected packages: collective.contact.widget.
What version fixes CVE-2022-4638?
Upgrading to 1.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is collective.contact.widget affected?
Yes, collective.contact.widget is affected in releases prior to 1.13. Upgrade your dependency to 1.13 or later.
What is the CVSS score of CVE-2022-4638?
CVE-2022-4638 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2022-4638?
CVE-2022-4638 is classified under CWE-707: Improper Neutralization (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.).
How can I check PyPI dependencies for CVE-2022-4638?
Run the dependency tree command: 'pip show collective.contact.widget'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}