Vulnerabilities

2 via 2 paths

Dependencies

58

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 1
Status
  • 2
  • 0
  • 0

high severity
new

Eval Injection

  • Vulnerable module: @faker-js/faker
  • Introduced through: @faker-js/faker@9.9.0

Detailed paths

  • Introduced through: @fractalerp/active-record-js@fractalerp/active-record-js @faker-js/faker@9.9.0
    Remediation: Upgrade to @faker-js/faker@10.5.0.

Overview

@faker-js/faker is a Generate massive amounts of fake contextual data

Affected versions of this package are vulnerable to Eval Injection via the helpers.fake function. An attacker can execute arbitrary JavaScript code by supplying specially crafted templates that access the Function constructor through fakeEval.resolveProperty when a function returns another function.

Remediation

Upgrade @faker-js/faker to version 10.5.0 or higher.

References

medium severity

Improper Validation of Specified Index, Position, or Offset in Input

  • Vulnerable module: uuid
  • Introduced through: sequelize@6.37.8

Detailed paths

  • Introduced through: @fractalerp/active-record-js@fractalerp/active-record-js sequelize@6.37.8 uuid@8.3.2

Overview

uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.

Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.

PoC

cd /home/StrawHat/uuid
npm ci
npm run build

node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
  ['v4',()=>v4({},new Uint8Array(8),4)],
  ['v5',()=>v5('x',ns,new Uint8Array(8),4)],
  ['v6',()=>v6({},new Uint8Array(8),4)],
]) {
  try { fn(); console.log(name,'NO_THROW'); }
  catch(e){ console.log(name,'THREW',e.name); }
}"

Remediation

Upgrade uuid to version 11.1.1, 14.0.0 or higher.

References