# GHSA-v86m-j5f7-ccwh: Passbolt Api E-mail HTML injection

> Authenticated attackers can inject HTML into Passbolt notification emails to potentially leak recipient mail client information.

- **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:** 20 May 2024

## What is GHSA-v86m-j5f7-ccwh?

GHSA-v86m-j5f7-ccwh is a cross-site scripting vulnerability in passbolt/passbolt_api, published on 20 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

Passbolt sends e-mail to users to warn them about different type of events such as the creation, modification or deletion of a password. Those e-mails may contain user-specified input, such as a password’s title or description.

Passbolt does not escape the user’s input properly, resulting in the user being able to inject HTML code in an e-mail.

An authenticated attacker could share a password containing an img HTML tag in its description with an other user to obtain information about their mail user-agent.

This vulnerability has a very low impact. Most MUA do not embed remote images to protect their users’ privacy.

## Which versions are affected by GHSA-v86m-j5f7-ccwh?

2 open source packages ship an affected version, including passbolt/passbolt_api.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `passbolt/passbolt_api` | Packagist | All versions | 2.7.0 |
| `passbolt/passbolt_api` | Packagist | All versions | 2.7.0 |

## How do I fix GHSA-v86m-j5f7-ccwh?

Upgrade passbolt/passbolt_api to 2.7.0 or later.

## Is GHSA-v86m-j5f7-ccwh being exploited?

There is no known exploitation of GHSA-v86m-j5f7-ccwh in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-v86m-j5f7-ccwh and fix it if it is affected.

What it is: GHSA-v86m-j5f7-ccwh is a cross-site scripting vulnerability in passbolt/passbolt_api, published on 20 May 2024. 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-v86m-j5f7-ccwh in the wild and no public exploit code.

Affected packages and fixed versions:
- passbolt/passbolt_api (Packagist): affected all versions; fixed in 2.7.0
- passbolt/passbolt_api (Packagist): affected all versions; fixed in 2.7.0

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-v86m-j5f7-ccwh/ (Markdown: https://insights.sbomify.com/GHSA-v86m-j5f7-ccwh/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-v86m-j5f7-ccwh

---
From sbomify Insights: https://insights.sbomify.com/GHSA-v86m-j5f7-ccwh/
Summaries are generated and may contain mistakes; the official description above is the record.
