CVE-2026-46350

dcmjs: DS/IS VALUE REPRESENTATION INPUT VALIDATION BYPASS

Published Nov 5, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
dcmjs is a JavaScript implementation of DICOM manipulation. Prior to 0.52.0, the DecimalString and IntegerString implementations in src/ValueRepresentation.js sanitize text with a permissive regular expression and pass the result to JavaScript's Number constructor without validating finiteness or the DICOM value-representation rules. Scientific notation overflow in a DS or IS field can produce positive or negative Infinity, while stripping alphabetic characters from signed infinity text can leave a sign-only string that converts to NaN. IntegerString also accepts exponent notation and values outside the DICOM signed 32-bit IS range. Applications that trust these parsed values can propagate invalid numbers into spatial geometry, display windowing, dose scaling, frame counts, rescaling, or volume reconstruction, causing incorrect calculations or disrupted processing. This issue is fixed in version 0.52.0.

Analysis

AI-generated

Technical impact

dcmjs is a JavaScript implementation of DICOM manipulation. Prior to version 0.52.0, the DecimalString and IntegerString value representations accepted permissively sanitized text and passed it directly to JavaScript's Number constructor without ensuring the result was finite or compliant with DICOM rules. An attacker can craft a DICOM file using scientific notation that overflows to Infinity or a string that converts to NaN. These invalid numeric values can be propagated into spatial geometry calculations, display windowing, dose scaling, frame counts, rescaling, or volume reconstruction, leading to incorrect medical imaging output or processing failures.

Affected Systems

All installations of dcmjs-org dcmjs prior to release 0.52.0 are affected. The vulnerability manifests in any application that relies on dcmjs to parse DICOM attributes of type DS or IS, including imaging viewer, PACS servers, and image processing pipelines that import data via this library.

Risk and Exploitability

The CVSS score of 9.1 indicates a high severity weakness. EPSS is not available, and the issue is not listed in CISA KEV. The most likely attack vector is the delivery of a carefully crafted DICOM file that contains out‑of‑range or malformed numeric values; no network exploitation or privilege escalation is required. If an application accepts such data without validation, the attacker can influence critical calculations, potentially causing diagnostic errors or system instability. Overall, the risk remains high due to the widespread use of dcmjs in medical imaging environments and the lack of built-in validation for these value representations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade dcmjs to version 0.52.0 or later to apply the official fix.
  • If upgrading is not yet possible, implement custom validation for DS and IS fields: ensure the parsed result is a finite number and falls within the DICOM-defined range, rejecting Infinity and NaN.
  • Insert a wrapper around the Number constructor used by dcmjs, or patch the library, to enforce finiteness and range checks on parsed values before they are employed in calculations or stored.
  • Verify that no downstream components unconditionally trust parsed numeric values; refactor code to treat invalid numbers as errors rather than benign input.

Generated by OpenCVE AI on November 5, 2026 at 21:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-px68-xx5g-48q5 dcmjs: DS/IS VALUE REPRESENTATION INPUT VALIDATION BYPASS
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Dcmjs-org
Dcmjs-org dcmjs
Vendors & Products Dcmjs-org
Dcmjs-org dcmjs
Type Values Removed Values Added
Description dcmjs is a JavaScript implementation of DICOM manipulation. Prior to 0.52.0, the DecimalString and IntegerString implementations in src/ValueRepresentation.js sanitize text with a permissive regular expression and pass the result to JavaScript's Number constructor without validating finiteness or the DICOM value-representation rules. Scientific notation overflow in a DS or IS field can produce positive or negative Infinity, while stripping alphabetic characters from signed infinity text can leave a sign-only string that converts to NaN. IntegerString also accepts exponent notation and values outside the DICOM signed 32-bit IS range. Applications that trust these parsed values can propagate invalid numbers into spatial geometry, display windowing, dose scaling, frame counts, rescaling, or volume reconstruction, causing incorrect calculations or disrupted processing. This issue is fixed in version 0.52.0.
Title dcmjs: DS/IS VALUE REPRESENTATION INPUT VALIDATION BYPASS
Weaknesses CWE-1284
CWE-20
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}

Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input

  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 5:42 PM
Reserved
May 13, 2026, 6:37 PM
Status
Deferred
Published
Nov 5, 2026, 9:18 PM
Modified
Nov 12, 2026, 10:18 PM