Vulnerabilities in pkg:npm/@dirac-grid/diracx-web-components

PACKAGE
Advisory Identifier: GHSA-hfj7-542q-8fvv
Advisory Summary

CVE-2025-54066 is a MODERATE (CVSS 4.7) diracx-web is vulnerable to attack vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting @dirac grid/diracx web components libraries in the npm ecosystem. The issue involves diracx-web is vulnerable to attack through an open redirect on its login page. Remediation is available by upgrading affected packages to version 0.1.0-a8.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@dirac-grid/diracx-web-components

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@dirac-grid/diracx-web-components. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-hfj7-542q-8fvv CVE-2025-54066 MODERATE DiracX-Web is vulnerable to attack through an Open Redirect on its login page

CVE-2025-54066 at a Glance

CVE Identifier CVE-2025-54066
GHSA Identifier GHSA-hfj7-542q-8fvv
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product @dirac grid/diracx web components
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.7

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

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

How to Fix CVE-2025-54066

To remediate this vulnerability, upgrade all affected @dirac grid/diracx web components dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@dirac-grid/diracx-web-components fixed: 0.1.0-a8
npm install @dirac-grid/diracx-web-components@0.1.0-a8
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 @dirac-grid/diracx-web-components

How to Check if You Are Affected

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

npm ls @dirac-grid/diracx-web-components

Analyze the terminal output to locate any version of @dirac grid/diracx web components in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.0-a8), your application is affected.

Note: The npm ls @dirac-grid/diracx-web-components 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In @dirac grid/diracx web components, 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

### Summary An attacker can forge a request to redirect an authenticated user to any arbitrary website. ### Details On the login page, we have a `redirect` field which is the location where the server will redirect the user. This URI is not verified, and can be an arbitrary URI. Paired with a parameter pollution, we can hide our malicious URI (ex: `https://dns.com/?param1=im_hidden_if_theres_lot_of_args?param1=bbb`). ### PoC https://diracx-cert.app.cern.ch/auth?redirect=https://ipcim.com/en/where/?dsdsd=qsqsfsjfnsfniizaeiaapzqlalkqkaizqqijsjaopmqmxna?redirect=https://diracx-cert-app.cern.ch/auth This POC can leak user's position. ### Impact This could be used for phishing and extracting new data (such as redirecting to a new "log in" page, and asking users to reenter credentials).

CVE-2025-54066 Affected @dirac grid/diracx web components Versions

1 component(s)
Fixed Versions:
0.1.0-a8
Product / Package Ecosystem Affected Versions Fixed Version
@dirac-grid/diracx-web-components
npm
< 0.1.0-a8
0.1.0-a8

References

Frequently Asked Questions

What is CVE-2025-54066?
CVE-2025-54066 is a security vulnerability in @dirac grid/diracx web components involving DiracX-Web is vulnerable to attack through an Open Redirect on its login page under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which @dirac grid/diracx web components versions are affected?
Affected versions include releases prior to 0.1.0-a8 across affected packages: @dirac-grid/diracx-web-components.
What version fixes CVE-2025-54066?
Upgrading to 0.1.0-a8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @dirac-grid/diracx-web-components affected?
Yes, @dirac-grid/diracx-web-components is affected in releases prior to 0.1.0-a8. Upgrade your dependency to 0.1.0-a8 or later.
What is the CVSS score of CVE-2025-54066?
CVE-2025-54066 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2025-54066?
CVE-2025-54066 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check npm dependencies for CVE-2025-54066?
Run the dependency tree command: 'npm ls @dirac-grid/diracx-web-components'. 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-hfj7-542q-8fvv",
  "modified" : "2025-07-17T19:40:59Z",
  "published" : "2025-07-17T19:40:59Z",
  "aliases" : [ "CVE-2025-54066" ],
  "summary" : "DiracX-Web is vulnerable to attack through an Open Redirect on its login page",
  "details" : "### Summary\n\nAn attacker can forge a request to redirect an authenticated user to any arbitrary website.\n\n### Details\n\nOn the login page, we have a `redirect` field which is the location where the server will redirect the user. This URI is not verified, and can be an arbitrary URI.\n\nPaired with a parameter pollution, we can hide our malicious URI (ex: `https://dns.com/?param1=im_hidden_if_theres_lot_of_args?param1=bbb`).\n\n### PoC\n\nhttps://diracx-cert.app.cern.ch/auth?redirect=https://ipcim.com/en/where/?dsdsd=qsqsfsjfnsfniizaeiaapzqlalkqkaizqqijsjaopmqmxna?redirect=https://diracx-cert-app.cern.ch/auth\n\nThis POC can leak user's position.\n\n### Impact\n\nThis could be used for phishing and extracting new data (such as redirecting to a new \"log in\" page, and asking users to reenter credentials).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@dirac-grid/diracx-web-components"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.0-a8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/DIRACGrid/diracx-web/security/advisories/GHSA-hfj7-542q-8fvv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54066"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DIRACGrid/diracx-web/commit/eba3b7bc4f9d394074215986e6d3c15b546b25d5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DIRACGrid/diracx-web"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-17T19:40:59Z",
    "nvd_published_at" : "2025-07-17T15:15:27Z"
  }
}