GHSA-v86m-j5f7-ccwh: Passbolt/passbolt api Passbolt Api E-mail HTML Injection Vulnerability

MODERATE
CVSS 4.4
CWE-79
Published
Advisory Summary

GHSA-v86m-j5f7-ccwh is a MODERATE (CVSS 4.4) passbolt api e-mail html injection vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Passbolt/passbolt api libraries in the Packagist ecosystem. The issue involves passbolt api e-mail html injection. Remediation is available by upgrading affected packages to version 2.7.0.

GHSA-v86m-j5f7-ccwh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-v86m-j5f7-ccwh
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Passbolt/passbolt api
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-v86m-j5f7-ccwh

To remediate this vulnerability, upgrade all affected Passbolt/passbolt api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

passbolt/passbolt_api fixed: 2.7.0
Upgrade passbolt/passbolt_api to 2.7.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for passbolt/passbolt_api

How to Check if You Are Affected

To determine whether your application is affected by GHSA-v86m-j5f7-ccwh, inspect your project dependencies for Passbolt/passbolt api:

inspect dependencies for passbolt/passbolt_api

Analyze the terminal output to locate any version of Passbolt/passbolt api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Passbolt/passbolt api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

GHSA-v86m-j5f7-ccwh Affected Passbolt/passbolt api Versions

1 component(s)
Fixed Versions:
2.7.0
Product / Package Ecosystem Affected Versions Fixed Version
passbolt/passbolt_api
Packagist
< 2.7.0
2.7.0

References

Frequently Asked Questions

What is GHSA-v86m-j5f7-ccwh?
GHSA-v86m-j5f7-ccwh is a security vulnerability in Passbolt/passbolt api involving Passbolt Api E-mail HTML injection under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Passbolt/passbolt api versions are affected?
Affected versions include releases prior to 2.7.0 across affected packages: passbolt/passbolt_api.
What version fixes GHSA-v86m-j5f7-ccwh?
Upgrading to 2.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is passbolt/passbolt_api affected?
Yes, passbolt/passbolt_api is affected in releases prior to 2.7.0. Upgrade your dependency to 2.7.0 or later.
What is the CVSS score of GHSA-v86m-j5f7-ccwh?
GHSA-v86m-j5f7-ccwh has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-v86m-j5f7-ccwh?
GHSA-v86m-j5f7-ccwh is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for GHSA-v86m-j5f7-ccwh?
Run the dependency tree command: 'inspect dependencies for passbolt/passbolt_api'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-v86m-j5f7-ccwh",
  "modified" : "2024-05-20T16:51:20Z",
  "published" : "2024-05-20T16:51:20Z",
  "aliases" : [ ],
  "summary" : "Passbolt Api E-mail HTML injection",
  "details" : "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.\n\nPassbolt does not escape the user’s input properly, resulting in the user being able to inject HTML code in an e-mail.\n\nAn 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.\n\nThis vulnerability has a very low impact. Most MUA do not embed remote images to protect their users’ privacy.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "passbolt/passbolt_api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/passbolt/passbolt_api/commit/00f0ebe37d78815adee26d5e80cf2250fe878647"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/passbolt/passbolt_api/2019-02-11-3.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/passbolt/passbolt_api"
  }, {
    "type" : "WEB",
    "url" : "https://www.passbolt.com/incidents/20190211_multiple_vulnerabilities"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-20T16:51:20Z",
    "nvd_published_at" : null
  }
}