LiveActive security incident?Get immediate response
CVE Record

CVE-2021-39131: Improper Handling of Unexpected Data Type in ced

ced detects character encoding using Google’s compact_enc_det library. In ced v0.1.0, passing data types other than `Buffer` causes the Node.js process to crash. The problem has been patched in ced v1.0.0. As a workaround, before passing an argument to ced, verify it’s a `Buffer` using `Buffer.isBuffer(obj)`.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-39131 is a denial-of-service issue in the Node.js package ced. If an application passes a non-Buffer value to ced v0.1.0, the Node.js process can crash. The business risk is service interruption where ced handles untrusted or poorly validated input.

Executive priority

Prioritize remediation for internet-facing or high-availability Node.js services that use ced. The issue is not known to be actively exploited from the provided sources, but the fix is straightforward and the impact is service availability.

Technical view

ced uses Google’s compact_enc_det library for character encoding detection. Versions before 1.0.0 mishandle unexpected input types: values other than Buffer can crash the Node.js process. The vendor advisory names v1.0.0 as patched and recommends Buffer.isBuffer validation as a workaround.

Likely exposure

Exposure is likely limited to Node.js applications that depend on sonicdoe/ced before 1.0.0 and pass user-controlled or variable data into ced without type validation. Systems not using ced, or only passing confirmed Buffer objects, are less likely exposed.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation evidence. The CVSS vector indicates remote, unauthenticated availability impact is possible when vulnerable application paths accept attacker-influenced data and pass it to ced.

Researcher notes

The evidence is clear on affected package, version boundary, crash condition, and workaround. Public sources in the bundle do not provide exploit-in-the-wild evidence, affected downstream products, or broader ecosystem impact, so exposure must be confirmed per application dependency and data flow.

Mitigation direction

  • Upgrade ced to version 1.0.0 or later.
  • Validate inputs with Buffer.isBuffer before calling ced.
  • Reject or safely handle non-Buffer values before encoding detection.
  • Review vendor advisory and release notes for deployment-specific guidance.

Validation and detection

  • Review dependency manifests for ced versions below 1.0.0.
  • Confirm transitive dependencies do not pin vulnerable ced versions.
  • Audit ced call sites for missing Buffer type checks.
  • Run regression tests covering non-Buffer input handling in safe test environments.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-241: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-39131 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2021-39131Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
sonicdoeced< 1.0.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-241 · source CWE mapping

Improper Handling of Unexpected Data Type

Improper Handling of Unexpected Data Type represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.