Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

Critical · 9.1 Node.js & npm GHSA-px68-xx5g-48q5 CVE-2026-46350

dcmjs: Input Validation Flaw Lets Malformed DICOM Values Corrupt Numeric Calculations

dcmjs versions before 0.52.0 fail to properly validate DICOM DecimalString and IntegerString fields, allowing malformed input to produce Infinity or NaN values that can corrupt downstream medical imaging calculations. Fixed in version 0.52.0.

By PatchBriefing · ·

Produced automatically from official sources with the help of AI. How we work →

Synthesized by AI from 4 sources · updated 1 week ago

AI summary

A vulnerability has been identified in dcmjs, a JavaScript library used to parse and manipulate DICOM medical imaging data. The flaw affects how the library validates two specific DICOM value types, and can allow specially crafted input to produce invalid numeric results that propagate into application logic. A fix is available in version 0.52.0.

What happened

A vulnerability was disclosed in dcmjs, a JavaScript implementation used for working with DICOM (Digital Imaging and Communications in Medicine) data. The issue lies in how the library's DecimalString (DS) and IntegerString (IS) value representation handlers process input text before converting it to numbers. The sanitization logic uses a permissive regular expression and passes the result directly to JavaScript's Number constructor without checking whether the result is a finite, valid number or whether it conforms to DICOM's value-representation rules.

Technical cause

Two specific input patterns can trigger invalid results. First, scientific notation in a DS or IS field can cause numeric overflow, producing positive or negative Infinity instead of a usable number. Second, stripping alphabetic characters from a signed-infinity text string (such as text representing 'infinity' with a sign) can leave only a sign character, which converts to NaN (Not a Number) rather than failing cleanly. Additionally, the IntegerString handler accepts exponent notation and numeric values that fall outside the DICOM-defined signed 32-bit range for IS fields, neither of which should be considered valid input under the DICOM specification.

Why it matters

Applications built on dcmjs often trust parsed DS and IS values without additional validation. When Infinity or NaN values enter application logic, they can propagate into spatial geometry calculations, display windowing, dose scaling, frame counts, rescaling operations, or volume reconstruction. This can result in incorrect calculations or disrupted processing in systems that handle medical imaging data, which may have downstream effects on how imaging results are displayed, measured, or interpreted by dependent tooling.

Affected versions

All dcmjs versions prior to 0.52.0 are affected. The issue is fixed in version 0.52.0.

Fixes and mitigation

The vendor has released version 0.52.0 of dcmjs, which addresses the validation gap in the DecimalString and IntegerString handling. Users of dcmjs should upgrade to version 0.52.0 or later to ensure DS and IS values are properly validated before use.

Recommended action

Site owners and developers using dcmjs should update to version 0.52.0 as soon as practical. Where immediate upgrading is not possible, applications should independently validate that any DS or IS values parsed from DICOM input are finite numbers within expected ranges before using them in calculations, particularly in contexts involving spatial geometry, dosing, or image rendering.

PatchBriefing score

9.1 / 10 · Critical

Official CVSS: 9.1

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

EPSS 0.0065 (46 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

dcmjs < 0.52.0
vulnerable
dcmjs ≥ 0 < 0.52.0
vulnerable
≥ 0.52.0
patched

Reported fixes

The vendor has released version 0.52.0 of dcmjs, which addresses the validation gap in the DecimalString and IntegerString handling. Users of dcmjs should upgrade to version 0.52.0 or later to ensure DS and IS values are properly validated before use.

How this was built

4 source records were collected, matched and used to prepare the report above.

  • GitHub Advisory Database database
  • OSV.dev database
  • NVD (NIST) database
  • CVE.org database
Unified report
dcmjs: Input Validation Flaw Lets Malformed DICOM Values Corrupt Numeric Calculations
1 article · 4 sources cited
Revision history
  1. Published
  2. Generated
  3. Published
  4. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email