CVE-2024-36110: Ansibleguy webui Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-927p-xrc2-x2gj
CVSS 8.2
CWE-79
Published
Advisory Summary

CVE-2024-36110 is a HIGH (CVSS 8.2) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ansibleguy webui libraries in the PyPI ecosystem. The issue involves ansibleguy-webui cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 0.0.21.

CVE-2024-36110 at a Glance

CVE Identifier CVE-2024-36110
GHSA Identifier GHSA-927p-xrc2-x2gj
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Ansibleguy webui
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-36110

To remediate this vulnerability, upgrade all affected Ansibleguy webui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ansibleguy-webui fixed: 0.0.21
pip install ansibleguy-webui>=0.0.21
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 ansibleguy-webui

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-36110, inspect your installed packages using pip:

pip show ansibleguy-webui

Analyze the terminal output to locate any version of Ansibleguy webui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.21), your application is affected.

Note: The pip show ansibleguy-webui command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Ansibleguy webui, 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

### Impact Multiple forms in version <0.0.21 allowed injection of HTML elements. These are returned to the user after executing job actions and thus evaluated by the browser. ### Patches We recommend to upgrade to version >= [0.0.21](https://github.com/ansibleguy/webui/releases/tag/0.0.21) ### References * [Report](https://github.com/ansibleguy/webui/files/15358522/Report.pdf) * [GitHub Issue 44](https://github.com/ansibleguy/webui/issues/44)

CVE-2024-36110 Affected Ansibleguy webui Versions

1 component(s)
Fixed Versions:
0.0.21
Product / Package Ecosystem Affected Versions Fixed Version
ansibleguy-webui
PyPI
< 0.0.21
0.0.21

References

Frequently Asked Questions

What is CVE-2024-36110?
CVE-2024-36110 is a security vulnerability in Ansibleguy webui involving ansibleguy-webui Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Ansibleguy webui versions are affected?
Affected versions include releases prior to 0.0.21 across affected packages: ansibleguy-webui.
What version fixes CVE-2024-36110?
Upgrading to 0.0.21 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ansibleguy-webui affected?
Yes, ansibleguy-webui is affected in releases prior to 0.0.21. Upgrade your dependency to 0.0.21 or later.
What is the CVSS score of CVE-2024-36110?
CVE-2024-36110 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L.
What CWE is associated with CVE-2024-36110?
CVE-2024-36110 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for CVE-2024-36110?
Run the dependency tree command: 'pip show ansibleguy-webui'. 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-927p-xrc2-x2gj",
  "modified" : "2024-06-03T18:29:23Z",
  "published" : "2024-05-28T21:23:42Z",
  "aliases" : [ "CVE-2024-36110" ],
  "summary" : "ansibleguy-webui Cross-site Scripting vulnerability",
  "details" : "### Impact\nMultiple forms in version <0.0.21 allowed injection of HTML elements.\nThese are returned to the user after executing job actions and thus evaluated by the browser.\n\n### Patches\nWe recommend to upgrade to version >= [0.0.21](https://github.com/ansibleguy/webui/releases/tag/0.0.21)\n\n### References\n\n* [Report](https://github.com/ansibleguy/webui/files/15358522/Report.pdf)\n* [GitHub Issue 44](https://github.com/ansibleguy/webui/issues/44)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ansibleguy-webui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.21"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ansibleguy/webui/security/advisories/GHSA-927p-xrc2-x2gj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36110"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansibleguy/webui/issues/44"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansibleguy/webui/commit/7737b47e7f7ddbfec7b1418c724598363718d522"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ansibleguy/webui"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansibleguy/webui/files/15358522/Report.pdf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-28T21:23:42Z",
    "nvd_published_at" : "2024-05-28T19:15:11Z"
  }
}