# GHSA-2w8g-m5j8-7m87: Zalgo-like output that crashes the server

> The colors library generates excessive output that crashes servers, requiring users to upgrade to the patched version.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Jan 2022

## What is GHSA-2w8g-m5j8-7m87?

GHSA-2w8g-m5j8-7m87 is a denial of service vulnerability in @soketi/soketi, published on 12 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact
_What kind of vulnerability is it? Who is impacted?_

[`colors`](https://npmjs.com/package/colors) package caused zalgo-like output (see https://github.com/soketi/soketi/issues/276, https://github.com/Marak/colors.js/issues/289), breaking the servers.

**Only NPM users that recently upgraded or installed the NPM package are affected.**

Docker users seem to not be affected as the dependencies were bundled at the time of the build, which were tested.

### Patches
_Has the problem been patched? What versions should users upgrade to?_

Latest patch. `0.26.1` to be exact at the time of writing.

### Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_

You cannot get around this as it's related to dependencies.

### References
_Are there any links users can visit to find out more?_

- https://github.com/Marak/colors.js/issues/289

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [the issues board](https://github.com/soketi/soketi/issues)
* Email us at [alex@renoki.org](mailto:alex@renoki.org)

## Which versions are affected by GHSA-2w8g-m5j8-7m87?

2 open source packages ship an affected version, including @soketi/soketi.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `@soketi/soketi` | npm | All versions | 0.26.1 |
| `@soketi/soketi` | npm | All versions | 0.26.1 |

## How do I fix GHSA-2w8g-m5j8-7m87?

Upgrade @soketi/soketi to 0.26.1 or later.

## Is GHSA-2w8g-m5j8-7m87 being exploited?

There is no known exploitation of GHSA-2w8g-m5j8-7m87 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-2w8g-m5j8-7m87 and fix it if it is affected.

What it is: GHSA-2w8g-m5j8-7m87 is a denial of service vulnerability in @soketi/soketi, published on 12 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-2w8g-m5j8-7m87 in the wild and no public exploit code.

Affected packages and fixed versions:
- @soketi/soketi (npm): affected all versions; fixed in 0.26.1
- @soketi/soketi (npm): affected all versions; fixed in 0.26.1

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-2w8g-m5j8-7m87/ (Markdown: https://insights.sbomify.com/GHSA-2w8g-m5j8-7m87/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-2w8g-m5j8-7m87

---
From sbomify Insights: https://insights.sbomify.com/GHSA-2w8g-m5j8-7m87/
Summaries are generated and may contain mistakes; the official description above is the record.
