Skip to content

Several issues reported by a bot in workers implementation #201

@fabroos

Description

@fabroos

A bot reported several issues on this, are they representing a real risk?

I need support on this ASAP pls, would be super have this merged today!


  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  console[level] = (message: any, ...optionalParams: any[]) => {
    const hasSubstitutions =
      typeof message === 'string' && /%[sdifcoO]/.test(message);

Medium SAST Finding

Regular Expression Denial of Service (ReDoS) in User Input Validation (CWE-185)

runtimes/typescript/worker.ts

      eval?.(`"use strict";
        ${event.data.dependencyBundle}`);

Medium SAST Finding

Unsafe Evaluation of User Input in JavaScript (CWE-95)

typescript/worker.ts

      eval?.(`"use strict";
        ${event.data.bundle}`);

Medium SAST Finding

Unsafe Evaluation of User Input in JavaScript (CWE-95)

typescript/worker.ts

      eval?.(`"use strict";
        ${event.data.dependencyBundle}`);

Medium SAST Finding

Unsafe Usage of eval() Function (CWE-95)

runtimes/typescript/worker.ts

      eval?.(`"use strict";
        ${event.data.bundle}`);

Medium SAST Finding

Unsafe Usage of eval() Function (CWE-95)

cc: @nebrius

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions