# GHSA-m8fw-534v-xm85: Cross-Site Scripting (XSS) in cloudcmd

> An attacker can execute arbitrary scripts in the victim's browser by controlling file names in cloudcmd directory listings.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 4 Jun 2019

## What is GHSA-m8fw-534v-xm85?

GHSA-m8fw-534v-xm85 is a cross-site scripting vulnerability in cloudcmd, published on 4 Jun 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

Versions of `cloudcmd` before 9.1.6 are vulnerable to cross-site scripting (XSS) when listing files in a directory. The attacker must control the name of a file for this vulnerability to be exploitable.

## Recommendation

Update to version 9.1.6 or later.

## Which versions are affected by GHSA-m8fw-534v-xm85?

2 open source packages ship an affected version, including cloudcmd.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `cloudcmd` | npm | All versions | 9.1.6 |
| `cloudcmd` | npm | All versions | 9.1.6 |

## How do I fix GHSA-m8fw-534v-xm85?

Upgrade cloudcmd to 9.1.6 or later.

## Is GHSA-m8fw-534v-xm85 being exploited?

There is no known exploitation of GHSA-m8fw-534v-xm85 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-m8fw-534v-xm85 and fix it if it is affected.

What it is: GHSA-m8fw-534v-xm85 is a cross-site scripting vulnerability in cloudcmd, published on 4 Jun 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-m8fw-534v-xm85 in the wild and no public exploit code.

Affected packages and fixed versions:
- cloudcmd (npm): affected all versions; fixed in 9.1.6
- cloudcmd (npm): affected all versions; fixed in 9.1.6

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-m8fw-534v-xm85/ (Markdown: https://insights.sbomify.com/GHSA-m8fw-534v-xm85/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-m8fw-534v-xm85

---
From sbomify Insights: https://insights.sbomify.com/GHSA-m8fw-534v-xm85/
Summaries are generated and may contain mistakes; the official description above is the record.
