Skip to content

swig-1.4.2.tgz: 3 vulnerabilities (highest severity is: 7.8) reachable #5

@staging-whitesource-for-github-com

Description

Vulnerable Library - swig-1.4.2.tgz

A simple, powerful, and extendable templating engine for node.js and browsers, similar to Django, Jinja2, and Twig.

Library home page: https://registry.npmjs.org/swig/-/swig-1.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Found in HEAD commit: c504479e8ba82eb61f5d1c42d9123823fa9cceb8

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (swig version) Remediation Possible** Reachability
CVE-2023-25345 High 7.5 swig-1.4.2.tgz Direct N/A

Reachable

CVE-2015-8858 High 7.5 uglify-js-2.4.24.tgz Transitive N/A*

Unreachable

CVE-2021-43138 High 7.8 async-0.2.10.tgz Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2023-25345

Vulnerable Library - swig-1.4.2.tgz

A simple, powerful, and extendable templating engine for node.js and browsers, similar to Django, Jinja2, and Twig.

Library home page: https://registry.npmjs.org/swig/-/swig-1.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • swig-1.4.2.tgz (Vulnerable Library)

Found in HEAD commit: c504479e8ba82eb61f5d1c42d9123823fa9cceb8

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

owasp-nodejs-goat-1.3.0/server.js (Application)
  -> swig-1.4.2/index.js (Extension)
   -> swig-1.4.2/lib/swig.js (Extension)
    -> swig-1.4.2/lib/loaders/index.js (Extension)
     -> ❌ swig-1.4.2/lib/loaders/memory.js (Vulnerable Component)

Vulnerability Details

Directory traversal vulnerability in swig-templates thru 2.0.4 and swig thru 1.4.2, allows attackers to read arbitrary files via the include or extends tags.

Publish Date: 2023-03-15

URL: CVE-2023-25345

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: None
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

CVE-2015-8858

Vulnerable Library - uglify-js-2.4.24.tgz

JavaScript parser, mangler/compressor and beautifier toolkit

Library home page: https://registry.npmjs.org/uglify-js/-/uglify-js-2.4.24.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • swig-1.4.2.tgz (Root Library)
    • uglify-js-2.4.24.tgz (Vulnerable Library)

Found in HEAD commit: c504479e8ba82eb61f5d1c42d9123823fa9cceb8

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

The uglify-js package before 2.6.0 for Node.js allows attackers to cause a denial of service (CPU consumption) via crafted input in a parse call, aka a "regular expression denial of service (ReDoS)."

Publish Date: 2017-01-23

URL: CVE-2015-8858

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8858

Release Date: 2017-01-23

Fix Resolution: v2.6.0

CVE-2021-43138

Vulnerable Library - async-0.2.10.tgz

Higher-order functions and common patterns for asynchronous code

Library home page: https://registry.npmjs.org/async/-/async-0.2.10.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • swig-1.4.2.tgz (Root Library)
    • uglify-js-2.4.24.tgz
      • async-0.2.10.tgz (Vulnerable Library)

Found in HEAD commit: c504479e8ba82eb61f5d1c42d9123823fa9cceb8

Found in base branch: master

Vulnerability Details

In Async before 2.6.4 and 3.x before 3.2.2, a malicious user can obtain privileges via the mapValues() method, aka lib/internal/iterator.js createObjectIterator prototype pollution.

Publish Date: 2022-04-06

URL: CVE-2021-43138

CVSS 3 Score Details (7.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2021-43138

Release Date: 2022-04-06

Fix Resolution: async - 2.6.4,3.2.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions