Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Currently failing basic vulnerability due to transitive dependencies therefore vastly limiting its usability! #124

Open
mandarkslab opened this issue May 7, 2024 · 0 comments

Comments

@mandarkslab
Copy link

mandarkslab commented May 7, 2024

As an Enterprise customer, I expect libraries which are maintained, managed and endorsed by Adobe to meet basic vulnerability scanning standards. This library in its current form introduces CVE's into organizations.

Actual Behavior: 2 medium severity vulnerabilities have indeed been detected.

  • SNYK-JS-INFLIGHT-6095116
  • SNYK-JS-TAR-6476909

Reproduce Scenario (including but not limited to)

Steps to reproduce can be found on Synk Security Vulnerability Database: https://security.snyk.io/vuln/SNYK-JS-INFLIGHT-6095116

Platform and Version

N/A

Sample Code that illustrates the problem

const inflight = require('inflight');

function testInflight() {
  let i = 0;
  function scheduleNext() {
    let key = `key-${i++}`;
    const callback = () => {
    };
    for (let j = 0; j < 1000000; j++) {
      inflight(key, callback);
    }

    setImmediate(scheduleNext);
  }


  if (i % 100 === 0) {
    console.log(process.memoryUsage());
  }

  scheduleNext();
}

testInflight();

Logs taken while reproducing problem

isaacs/inflight-DEPRECATED-DO-NOT-USE#5

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant