LiveActive security incident?Get immediate response
CVE Record

CVE-2022-31106: Prototype Pollution in underscore.deep

Underscore.deep is a collection of Underscore mixins that operate on nested objects. Versions of `underscore.deep` prior to version 0.5.3 are vulnerable to a prototype pollution vulnerability. An attacker can craft a malicious payload and pass it to `deepFromFlat`, which would pollute any future Objects created. Any users that have `deepFromFlat` or `deepPick` (due to its dependency on `deepFromFlat`) in their code should upgrade to version 0.5.3 as soon as possible. Users unable to upgrade may mitigate this issue by modifying `deepFromFlat` to prevent specific keywords which will prevent this from happening.

HighCVSS 8.3Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This vulnerability affects underscore.deep before 0.5.3, a JavaScript helper library for nested objects. Malicious input passed into affected functions can change object prototypes, potentially influencing later objects in the application. Business urgency depends on whether the library is present and receives untrusted input.

Executive priority

Treat as high priority for dependency remediation when underscore.deep is in production paths handling external input. If the library is absent, already upgraded, or only processes trusted internal data, urgency is lower but should still be documented.

Technical view

CVE-2022-31106 is prototype pollution in underscore.deep <0.5.3. The affected path is deepFromFlat, and deepPick is also exposed through its dependency on deepFromFlat. The CVSS 3.1 score is 8.3 with network attack vector, low complexity, no privileges, and no user interaction.

Likely exposure

Exposure is likely in JavaScript applications that use underscore.deep <0.5.3 and call deepFromFlat or deepPick on attacker-controlled or untrusted object data. The source bundle does not identify specific downstream products or deployments.

Exploitation context

The source bundle does not cite active exploitation, and KEV is false. The CVSS vector indicates remote, unauthenticated exploitability in applicable application paths, but real risk depends on whether untrusted data reaches the vulnerable functions.

Researcher notes

This maps to CWE-1321 and CWE-915. The issue is unsafe handling of object keys in deepFromFlat, allowing prototype pollution that can affect future objects. Evidence supports the named package and vulnerable functions only; no broader ecosystem impact is provided.

Mitigation direction

  • Upgrade underscore.deep to version 0.5.3 or later.
  • Prioritize applications where deepFromFlat or deepPick handles external input.
  • If unable to upgrade, modify deepFromFlat to block the dangerous keywords identified by vendor guidance.
  • Review vendor advisory and patch commit before choosing a temporary workaround.

Validation and detection

  • Check package manifests, lockfiles, and SBOMs for underscore.deep versions below 0.5.3.
  • Search application code for direct calls to deepFromFlat and deepPick.
  • Trace whether user-controlled data can reach those functions.
  • Confirm upgraded builds resolve to underscore.deep 0.5.3 or later.
Prepared
Confidence
high
Sources
4

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-1321: 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
cwe · low confidence lookup

CWE-915: 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-2022-31106 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
8.3 (3.1)
Known Exploited
No
Published

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

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
3Source 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
8.3CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L3.93.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

8.3High
CVSS 3.1 vector shape for CVE-2022-31106Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

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
Cleverunderscore.deep< 0.5.3Listed
Weakness

CWE details

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

CWE-1321 · source CWE mapping

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-915 · source CWE mapping

Improperly Controlled Modification of Dynamically-Determined Object Attributes

Improperly Controlled Modification of Dynamically-Determined Object Attributes represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.