GHSA-C2JG-2778-GGM4

Vulnerability from github – Published: 2026-09-08 18:09 – Updated: 2026-09-08 18:09
VLAI
Summary
Prowler: Stored XSS in HTML reports through unescaped cloud resource tags
Details

Summary

Prowler's HTML output formatter inserts finding.resource_tags into the generated report without HTML escaping. A cloud principal who can create or edit a resource tag in an account that is later scanned can store HTML or JavaScript in that tag. When another user opens the generated Prowler HTML report, the payload executes in the report page.

Impact

This is stored cross-site scripting in a security report artifact. The attacker needs permission to influence tags on a scanned cloud resource, and the victim must open the generated HTML report. In that context, JavaScript can read and modify the report DOM, alter displayed findings, and interact with any same-origin local or hosted report content available to the browser. This can undermine trust in generated security findings and can expose data contained in the report page.

Gate checks

The repository has 13,875 GitHub stars, which is above the 10,000 star floor. SECURITY.md is present and does not reject GitHub private reporting. The dedicated GitHub private vulnerability reporting endpoint for prowler-cloud/prowler returned true.

Affected versions

The vulnerable sink is present in current master at commit 329dfdf8e6cb8bc0424fb54b6595408e20969782 and in the latest GitHub release tag 5.28.0. The package metadata identifies the Python package as prowler.

Technical details

The HTML formatter builds each finding row with an f-string in prowler/lib/outputs/html/html.py. Neighboring fields are explicitly escaped:

  • resource_uid is escaped at line 85 with .replace("<", "&lt;").replace(">", "&gt;").
  • status_extended is escaped at line 87 with the same pattern.

The tag column does not apply equivalent escaping:

<td>{parse_html_string(unroll_dict(finding.resource_tags))}</td>

unroll_dict concatenates tag keys and values into a string, and parse_html_string only prefixes each item with an HTML bullet. Neither function escapes <, >, quotes, or event-handler attributes before insertion into the table cell. As a result, a tag value such as this remains active markup in the generated report:

<img src=x onerror="window.PROWLER_TAG_XSS=1">

Reproduction

  1. Create or identify a cloud resource that Prowler will include in an HTML report.
  2. Add a tag value containing a harmless proof payload, for example:
<img src=x onerror="window.PROWLER_TAG_XSS=1">
  1. Run Prowler against the account and generate HTML output.
  2. Open the generated HTML report in a browser.
  3. The payload executes from the tags column.

A proof HTML fragment using the same formatter structure set window.PROWLER_TAG_XSS=1 from resource_tags, while equivalent payloads in resource_uid and status_extended stayed text because those fields are escaped.

Local evidence:

  • /home/unkn0wn/security_audit/vulnerability-reports/prowler-html-tag-xss-evidence-2026-05-26.json
  • /home/unkn0wn/security_audit/vulnerability-reports/prowler-html-tag-xss-proof-full.html

PoC

The minimized generated row below mirrors the vulnerable formatter output. The first and third candidate payloads are escaped controls. The middle payload is the unescaped resource_tags value and executes when the report is rendered.

<tr class="table-danger">
  <td>&lt;img src=x onerror="window.PROWLER_UID_XSS=1"&gt;</td>
  <td>
    &#x2022;Owner=<img src=x onerror="window.PROWLER_TAG_XSS=1;document.body.setAttribute('data-prowler-tag-xss','1')">
  </td>
  <td>&lt;img src=x onerror="window.PROWLER_STATUS_XSS=1"&gt;</td>
</tr>

Browser proof result from the local artifact:

{"tag": 1, "uid": 0, "status": 0, "attr": "1"}

Remediation

Escape tag keys and values before inserting them into HTML output. Prefer a single HTML escaping helper for every finding field that can originate from provider data. If bullets or separators are needed, build the list structure after escaping each key and value, rather than escaping the final HTML string after markup has been added.

Show details on source website

{
  "affected": [
    {
      "database_specific": {
        "last_known_affected_version_range": "\u003c= 5.36.0"
      },
      "package": {
        "ecosystem": "PyPI",
        "name": "prowler"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.37.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "database_specific": {
        "last_known_affected_version_range": "\u003c= 5.36.0"
      },
      "package": {
        "ecosystem": "PyPI",
        "name": "prowler-cloud"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.37.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-73262"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-09-08T18:09:25Z",
    "nvd_published_at": "2026-08-12T15:18:30Z",
    "severity": "MODERATE"
  },
  "details": "## Summary\n\nProwler\u0027s HTML output formatter inserts `finding.resource_tags` into the generated report without HTML escaping. A cloud principal who can create or edit a resource tag in an account that is later scanned can store HTML or JavaScript in that tag. When another user opens the generated Prowler HTML report, the payload executes in the report page.\n\n## Impact\n\nThis is stored cross-site scripting in a security report artifact. The attacker needs permission to influence tags on a scanned cloud resource, and the victim must open the generated HTML report. In that context, JavaScript can read and modify the report DOM, alter displayed findings, and interact with any same-origin local or hosted report content available to the browser. This can undermine trust in generated security findings and can expose data contained in the report page.\n\n## Gate checks\n\nThe repository has 13,875 GitHub stars, which is above the 10,000 star floor. `SECURITY.md` is present and does not reject GitHub private reporting. The dedicated GitHub private vulnerability reporting endpoint for `prowler-cloud/prowler` returned `true`.\n\n## Affected versions\n\nThe vulnerable sink is present in current `master` at commit `329dfdf8e6cb8bc0424fb54b6595408e20969782` and in the latest GitHub release tag `5.28.0`. The package metadata identifies the Python package as `prowler`.\n\n## Technical details\n\nThe HTML formatter builds each finding row with an f-string in `prowler/lib/outputs/html/html.py`. Neighboring fields are explicitly escaped:\n\n- `resource_uid` is escaped at line 85 with `.replace(\"\u003c\", \"\u0026lt;\").replace(\"\u003e\", \"\u0026gt;\")`.\n- `status_extended` is escaped at line 87 with the same pattern.\n\nThe tag column does not apply equivalent escaping:\n\n```python\n\u003ctd\u003e{parse_html_string(unroll_dict(finding.resource_tags))}\u003c/td\u003e\n```\n\n`unroll_dict` concatenates tag keys and values into a string, and `parse_html_string` only prefixes each item with an HTML bullet. Neither function escapes `\u003c`, `\u003e`, quotes, or event-handler attributes before insertion into the table cell. As a result, a tag value such as this remains active markup in the generated report:\n\n```html\n\u003cimg src=x onerror=\"window.PROWLER_TAG_XSS=1\"\u003e\n```\n\n## Reproduction\n\n1. Create or identify a cloud resource that Prowler will include in an HTML report.\n2. Add a tag value containing a harmless proof payload, for example:\n\n```html\n\u003cimg src=x onerror=\"window.PROWLER_TAG_XSS=1\"\u003e\n```\n\n3. Run Prowler against the account and generate HTML output.\n4. Open the generated HTML report in a browser.\n5. The payload executes from the tags column.\n\nA proof HTML fragment using the same formatter structure set `window.PROWLER_TAG_XSS=1` from `resource_tags`, while equivalent payloads in `resource_uid` and `status_extended` stayed text because those fields are escaped.\n\nLocal evidence:\n\n- `/home/unkn0wn/security_audit/vulnerability-reports/prowler-html-tag-xss-evidence-2026-05-26.json`\n- `/home/unkn0wn/security_audit/vulnerability-reports/prowler-html-tag-xss-proof-full.html`\n\n## PoC\n\nThe minimized generated row below mirrors the vulnerable formatter output. The first and third candidate payloads are escaped controls. The middle payload is the unescaped `resource_tags` value and executes when the report is rendered.\n\n```html\n\u003ctr class=\"table-danger\"\u003e\n  \u003ctd\u003e\u0026lt;img src=x onerror=\"window.PROWLER_UID_XSS=1\"\u0026gt;\u003c/td\u003e\n  \u003ctd\u003e\n    \u0026#x2022;Owner=\u003cimg src=x onerror=\"window.PROWLER_TAG_XSS=1;document.body.setAttribute(\u0027data-prowler-tag-xss\u0027,\u00271\u0027)\"\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\u0026lt;img src=x onerror=\"window.PROWLER_STATUS_XSS=1\"\u0026gt;\u003c/td\u003e\n\u003c/tr\u003e\n```\n\nBrowser proof result from the local artifact:\n\n```json\n{\"tag\": 1, \"uid\": 0, \"status\": 0, \"attr\": \"1\"}\n```\n\n## Remediation\n\nEscape tag keys and values before inserting them into HTML output. Prefer a single HTML escaping helper for every finding field that can originate from provider data. If bullets or separators are needed, build the list structure after escaping each key and value, rather than escaping the final HTML string after markup has been added.",
  "id": "GHSA-c2jg-2778-ggm4",
  "modified": "2026-09-08T18:09:25Z",
  "published": "2026-09-08T18:09:25Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/prowler-cloud/prowler/security/advisories/GHSA-c2jg-2778-ggm4"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-73262"
    },
    {
      "type": "WEB",
      "url": "https://github.com/prowler-cloud/prowler/pull/12221"
    },
    {
      "type": "WEB",
      "url": "https://github.com/prowler-cloud/prowler/commit/6db407ed3c17d4c73a8f619fdb30580c8465027f"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/prowler-cloud/prowler"
    },
    {
      "type": "WEB",
      "url": "https://github.com/prowler-cloud/prowler/releases/tag/5.37.0"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Prowler: Stored XSS in HTML reports through unescaped cloud resource tags"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…