# GHSA-64gp-r758-8pfm: Cross Site Scripting (XSS) vulnerability while uploading content to a new deployment

> An attacker with high privileges can execute malicious scripts in the WildFly management console during content upload, potentially compromising the server.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 23 Dec 2024

## What is GHSA-64gp-r758-8pfm?

GHSA-64gp-r758-8pfm is a cross-site scripting vulnerability in org.jboss.hal:hal-console, published on 23 Dec 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

### Official description

A vulnerability was found in the WildFly management console. A user may perform cross-site scripting in the deployment system. An attacker (or insider) may execute a malicious payload which could trigger an undesired behavior against the server.

### Impact
Cross-site scripting (XSS) vulnerability in the management console.

### Patches
Fixed in [HAL 3.7.7.Final](https://github.com/hal/console/releases/tag/v3.7.7) 

### Workarounds
No workaround available

### References
See also: https://issues.redhat.com/browse/WFLY-19969

## Which versions are affected by GHSA-64gp-r758-8pfm?

2 open source packages ship an affected version, including org.jboss.hal:hal-console.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.jboss.hal:hal-console` | Maven | All versions | 3.7.7.Final |
| `org.jboss.hal:hal-console` | Maven | All versions | 3.7.7.Final |

## How do I fix GHSA-64gp-r758-8pfm?

Upgrade org.jboss.hal:hal-console to 3.7.7.Final or later.

## Is GHSA-64gp-r758-8pfm being exploited?

There is no known exploitation of GHSA-64gp-r758-8pfm in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-64gp-r758-8pfm and fix it if it is affected.

What it is: GHSA-64gp-r758-8pfm is a cross-site scripting vulnerability in org.jboss.hal:hal-console, published on 23 Dec 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-64gp-r758-8pfm in the wild and no public exploit code.

Affected packages and fixed versions:
- org.jboss.hal:hal-console (Maven): affected all versions; fixed in 3.7.7.Final
- org.jboss.hal:hal-console (Maven): affected all versions; fixed in 3.7.7.Final

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-64gp-r758-8pfm/ (Markdown: https://insights.sbomify.com/GHSA-64gp-r758-8pfm/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-64gp-r758-8pfm

---
From sbomify Insights: https://insights.sbomify.com/GHSA-64gp-r758-8pfm/
Summaries are generated and may contain mistakes; the official description above is the record.
