CVE-2023-6944: 
JavaScript vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2023-6944) was discovered in the Red Hat Developer Hub (RHDH) affecting the catalog-import function. The flaw allows GitLab access tokens to be leaked on the frontend when the base64 encoded GitLab token includes a newline at the end of the string. This vulnerability was initially reported on January 4, 2024, affecting versions up to (excluding) 1.21.0 of both LinuxFoundation Backstage and Red Hat Developer Hub (NVD, Red Hat Advisory).

Technical details

The vulnerability is classified as CWE-209 (Generation of Error Message Containing Sensitive Information). When processing GitLab tokens in the catalog-import function, the system fails to properly sanitize error messages, resulting in the exposure of raw access tokens in frontend error displays. The vulnerability has been assigned a CVSS v3.1 base score of 5.7 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N (NVD).

Impact

The exposure of GitLab access tokens can lead to serious security implications. Depending on the token's permissions, an attacker could potentially execute malicious activities including pushing unauthorized code to repositories, deleting Git resources, revoking or generating new keys, and signing code illegitimately (Red Hat Bugzilla).

Exploitability

The vulnerability requires an attacker to have network access and low privileges, with user interaction required for exploitation. The specific condition for exploitation occurs when the base64 encoded GitLab token includes a newline at the end of the string, causing the sanitized error to display the raw access token on the frontend (NVD).

Mitigation and workarounds

The vulnerability has been fixed in version 1.21.0 of Red Hat Developer Hub. Organizations using affected versions should upgrade to version 1.21.0 or later to address this security issue (Red Hat Bugzilla).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-107722CRITICAL9.8
  • JavaScript logoJavaScript
  • fast-jwt
NoYesOct 08, 2026
CVE-2026-107723HIGH8.1
  • JavaScript logoJavaScript
  • fast-jwt
NoYesOct 08, 2026
CVE-2026-107724HIGH7.4
  • JavaScript logoJavaScript
  • fast-jwt
NoYesOct 08, 2026
CVE-2026-107720HIGH7.4
  • JavaScript logoJavaScript
  • fast-jwt
NoYesOct 08, 2026
CVE-2026-107721MEDIUM5.9
  • JavaScript logoJavaScript
  • fast-jwt
NoYesOct 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management