CVE-2024-27083: Flask AppBuilder Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-fqxj-46wg-9v84
CVSS 4.3
CWE-79
Published
Advisory Summary

CVE-2024-27083 is a MODERATE (CVSS 4.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Flask AppBuilder libraries in the PyPI ecosystem. The issue involves flask-appbuilder's oauth login page subject to cross site scripting (xss). Remediation is available by upgrading affected packages to version 4.2.1.

CVE-2024-27083 at a Glance

CVE Identifier CVE-2024-27083
GHSA Identifier GHSA-fqxj-46wg-9v84
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Flask AppBuilder
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.3

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:U/C:L/I:N/A:N).

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

How to Fix CVE-2024-27083

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

Flask-AppBuilder fixed: 4.2.1
pip install Flask-AppBuilder>=4.2.1
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 Flask-AppBuilder

How to Check if You Are Affected

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

pip show Flask-AppBuilder

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

Note: The pip show Flask-AppBuilder 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 Flask AppBuilder, 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 A Cross-Site Scripting (XSS) vulnerability has been discovered on the OAuth login page. An attacker could trick a user to follow a specially crafted URL to the OAuth login page. This URL could inject and execute malicious javascript code that would get executed on the user's browser. Impacted versions: Flask-AppBuilder version 4.1.4 up to and including 4.2.0 ### Patches This issue was introduced on 4.1.4 and patched on 4.2.1, user's should upgrade to 4.2.1 or newer versions.

CVE-2024-27083 Affected Flask AppBuilder Versions

1 component(s)
Fixed Versions:
4.2.1
Product / Package Ecosystem Affected Versions Fixed Version
Flask-AppBuilder
PyPI
≥ 4.1.4
< 4.2.1
4.2.1

References

Frequently Asked Questions

What is CVE-2024-27083?
CVE-2024-27083 is a security vulnerability in Flask AppBuilder involving Flask-AppBuilder's OAuth login page subject to Cross Site Scripting (XSS) under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Flask AppBuilder versions are affected?
Affected versions include releases prior to 4.2.1 across affected packages: Flask-AppBuilder.
What version fixes CVE-2024-27083?
Upgrading to 4.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Flask-AppBuilder affected?
Yes, Flask-AppBuilder is affected in releases prior to 4.2.1. Upgrade your dependency to 4.2.1 or later.
What is the CVSS score of CVE-2024-27083?
CVE-2024-27083 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-27083?
CVE-2024-27083 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-27083?
Run the dependency tree command: 'pip show Flask-AppBuilder'. 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-fqxj-46wg-9v84",
  "modified" : "2025-04-01T22:59:33Z",
  "published" : "2024-02-28T18:37:01Z",
  "aliases" : [ "CVE-2024-27083" ],
  "summary" : "Flask-AppBuilder's OAuth login page subject to Cross Site Scripting (XSS)",
  "details" : "### Impact\nA Cross-Site Scripting (XSS) vulnerability has been discovered on the OAuth login page. An attacker could trick a user to follow a specially crafted URL to the OAuth login page. This URL could inject and execute malicious javascript code that would get executed on the user's browser.\n\nImpacted versions:\nFlask-AppBuilder version 4.1.4 up to and including 4.2.0\n\n### Patches\nThis issue was introduced on 4.1.4 and patched on 4.2.1, user's should upgrade to 4.2.1 or newer versions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Flask-AppBuilder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.4"
      }, {
        "fixed" : "4.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dpgaspar/Flask-AppBuilder/security/advisories/GHSA-fqxj-46wg-9v84"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27083"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dpgaspar/Flask-AppBuilder/commit/3d17741886e4b3c384d0570de69689e4117aa812"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dpgaspar/Flask-AppBuilder"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-28T18:37:01Z",
    "nvd_published_at" : "2024-02-29T01:44:19Z"
  }
}