CVE-2023-2191: Azuracast/azuracast Cross-Site Scripting Vulnerability

LOW
Advisory Identifier: GHSA-q55c-hmpf-6h2g
CVSS 3.5
CWE-79
Published
Advisory Summary

CVE-2023-2191 is a LOW (CVSS 3.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Azuracast/azuracast libraries in the Packagist ecosystem. The issue involves azuracast/azuracast vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 0.18.0.

CVE-2023-2191 at a Glance

CVE Identifier CVE-2023-2191
GHSA Identifier GHSA-q55c-hmpf-6h2g
Severity LOW
CVSS v3.1 Base Score 3.5
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Azuracast/azuracast
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 3.5

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

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

How to Fix CVE-2023-2191

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

azuracast/azuracast fixed: 0.18.0
Upgrade azuracast/azuracast to 0.18.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for azuracast/azuracast

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-2191, inspect your project dependencies for Azuracast/azuracast:

inspect dependencies for azuracast/azuracast

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

Note: Verify declared build manifests and deployed runtime container environments.

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 Azuracast/azuracast, 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

AzuraCast/AzuraCast prior to version 0.18.0 is vulnerable to stored cross-site scripting. An issue was identified where a user who already had an AzuraCast account could update their display name to inject malicious JavaScript into the header menu of the site. In a majority of cases, this menu is only visible to the current logged-in user (pages like the `Administer Users` page are unaffected by this vulnerability), but if a higher-privileged administrator uses the `Log In As` feature to masquerade as a user, then the JavaScript injection could exfiltrate certain data. Anonymous members of the public cannot exploit this vulnerability in an AzuraCast installation, so it is primarily of concern for multi-tenant installations (i.e. resellers).

CVE-2023-2191 Affected Azuracast/azuracast Versions

1 component(s)
Fixed Versions:
0.18.0
Product / Package Ecosystem Affected Versions Fixed Version
azuracast/azuracast
Packagist
< 0.18.0
0.18.0

References

Frequently Asked Questions

What is CVE-2023-2191?
CVE-2023-2191 is a security vulnerability in Azuracast/azuracast involving AzuraCast/AzuraCast vulnerable to cross-site scripting under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Azuracast/azuracast versions are affected?
Affected versions include releases prior to 0.18.0 across affected packages: azuracast/azuracast.
What version fixes CVE-2023-2191?
Upgrading to 0.18.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is azuracast/azuracast affected?
Yes, azuracast/azuracast is affected in releases prior to 0.18.0. Upgrade your dependency to 0.18.0 or later.
What is the CVSS score of CVE-2023-2191?
CVE-2023-2191 has a CVSS v3.1 base score of 3.5 (LOW) with vector string CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2023-2191?
CVE-2023-2191 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 Packagist dependencies for CVE-2023-2191?
Run the dependency tree command: 'inspect dependencies for azuracast/azuracast'. 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-q55c-hmpf-6h2g",
  "modified" : "2023-04-20T20:29:55Z",
  "published" : "2023-04-20T03:30:16Z",
  "aliases" : [ "CVE-2023-2191" ],
  "summary" : "AzuraCast/AzuraCast vulnerable to cross-site scripting ",
  "details" : "AzuraCast/AzuraCast prior to version 0.18.0 is vulnerable to stored cross-site scripting. An issue was identified where a user who already had an AzuraCast account could update their display name to inject malicious JavaScript into the header menu of the site. In a majority of cases, this menu is only visible to the current logged-in user (pages like the `Administer Users` page are unaffected by this vulnerability), but if a higher-privileged administrator uses the `Log In As` feature to masquerade as a user, then the JavaScript injection could exfiltrate certain data. Anonymous members of the public cannot exploit this vulnerability in an AzuraCast installation, so it is primarily of concern for multi-tenant installations (i.e. resellers).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "azuracast/azuracast"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-2191"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/azuracast/azuracast/commit/24276cb4166b2057de73569ec33046a80a8bb437"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/AzuraCast/AzuraCast"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AzuraCast/AzuraCast/blob/main/CHANGELOG.md#azuracast-0180-apr-19-2023"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/0814f5f9-8b58-40e5-b08c-7c488947cf31"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-20T20:29:55Z",
    "nvd_published_at" : "2023-04-20T02:15:06Z"
  }
}