CVE-2023-33187: Highlight.run Html Inputs Of Type Password Vulnerability

MODERATE
Advisory Identifier: GHSA-9qpj-qq2r-5mcc
CVSS 5.4
CWE-319
Published
Advisory Summary

CVE-2023-33187 is a MODERATE (CVSS 5.4) html inputs of type password vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting Highlight.run libraries in the npm ecosystem. The issue involves html inputs of type password recorded in plaintext when converted to text inputs. Remediation is available by upgrading affected packages to version 6.0.0.

CVE-2023-33187 at a Glance

CVE Identifier CVE-2023-33187
GHSA Identifier GHSA-9qpj-qq2r-5mcc
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-319: Cleartext Transmission of Sensitive Information
Affected Product Highlight.run
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.4

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

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

How to Fix CVE-2023-33187

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

highlight.run fixed: 6.0.0
npm install highlight.run@6.0.0
Verify Direct and Transitive Dependencies

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

npm ls highlight.run

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2023-33187, inspect your project dependencies using npm:

npm ls highlight.run

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

Note: The npm ls highlight.run command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. In Highlight.run, 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

### Impact Highlight may record passwords on customer deployments when a password html input is switched to `type="text"` via a javascript "Show Password" button. This differs from the expected behavior which always obfuscates `type="password"` inputs. A customer may assume that switching to `type="text"` would also not record this input; hence, they would not add additional `highlight-mask` css-class obfuscation to this part of the DOM, resulting in unintentional recording of a password value when a `Show Password` button is used. ### Patches `highlight.run@6.0.0` resolves the issue via https://github.com/rrweb-io/rrweb/pull/1184 This patch tracks changes to the `type` attribute of an input to ensure an input that used to be a `type="password"` continues to be obfuscated. ### Workarounds We have deployed a change to our data ingest to obfuscate passwords server side from older clients. This means that upgrading to the latest version of highlight.run is not necessary but recommended to prevent potential network transfer of recorded password data to our backend. ### References https://github.com/rrweb-io/rrweb/pull/1184

CVE-2023-33187 Affected Highlight.run Versions

1 component(s)
Fixed Versions:
6.0.0
Product / Package Ecosystem Affected Versions Fixed Version
highlight.run
npm
< 6.0.0
6.0.0

References

Frequently Asked Questions

What is CVE-2023-33187?
CVE-2023-33187 is a security vulnerability in Highlight.run involving html inputs of type password recorded in plaintext when converted to text inputs under CWE-319: Cleartext Transmission of Sensitive Information.
Which Highlight.run versions are affected?
Affected versions include releases prior to 6.0.0 across affected packages: highlight.run.
What version fixes CVE-2023-33187?
Upgrading to 6.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is highlight.run affected?
Yes, highlight.run is affected in releases prior to 6.0.0. Upgrade your dependency to 6.0.0 or later.
What is the CVSS score of CVE-2023-33187?
CVE-2023-33187 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2023-33187?
CVE-2023-33187 is classified under CWE-319: Cleartext Transmission of Sensitive Information (The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors.).
How can I check npm dependencies for CVE-2023-33187?
Run the dependency tree command: 'npm ls highlight.run'. 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-9qpj-qq2r-5mcc",
  "modified" : "2023-05-26T13:52:19Z",
  "published" : "2023-05-26T13:52:19Z",
  "aliases" : [ "CVE-2023-33187" ],
  "summary" : "html inputs of type password recorded in plaintext when converted to text inputs",
  "details" : "### Impact\nHighlight may record passwords on customer deployments when a password html input is switched to `type=\"text\"` via a javascript \"Show Password\" button. This differs from the expected behavior which always obfuscates `type=\"password\"` inputs. A customer may assume that switching to `type=\"text\"` would also not record this input; hence, they would not add additional `highlight-mask` css-class obfuscation to this part of the DOM, resulting in unintentional recording of a password value when a `Show Password` button is used.\n\n### Patches\n`highlight.run@6.0.0` resolves the issue via https://github.com/rrweb-io/rrweb/pull/1184\nThis patch tracks changes to the `type` attribute of an input to ensure an input that used to be a `type=\"password\"` continues to be obfuscated. \n\n### Workarounds\nWe have deployed a change to our data ingest to obfuscate passwords server side from older clients.\nThis means that upgrading to the latest version of highlight.run is not necessary but recommended to prevent potential network transfer of recorded password data to our backend.\n\n### References\nhttps://github.com/rrweb-io/rrweb/pull/1184\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "highlight.run"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/highlight/highlight/security/advisories/GHSA-9qpj-qq2r-5mcc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-33187"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rrweb-io/rrweb/pull/1184"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/highlight/highlight"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-319" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-26T13:52:19Z",
    "nvd_published_at" : "2023-05-26T21:15:20Z"
  }
}