Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

swagger-ui-2.1.2.min.js: 6 vulnerabilities (highest severity is: 6.9) #12

Open
mend-for-github-com bot opened this issue Nov 19, 2023 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-github-com
Copy link
Contributor

mend-for-github-com bot commented Nov 19, 2023

Vulnerable Library - swagger-ui-2.1.2.min.js

Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API

Library home page: https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/2.1.2/swagger-ui.min.js

Path to vulnerable library: /WebContent/swagger/swagger-ui.min.js

Found in HEAD commit: 2aa4425a74208f6bd9358a1967cc39a7ca394cdd

Vulnerabilities

CVE Severity CVSS Exploit Maturity EPSS Dependency Type Fixed in (swagger-ui version) Remediation Possible** Reachability
WS-2016-0034 Medium 6.9 Not Defined swagger-ui-2.1.2.min.js Direct v2.1.5
CVE-2016-1000233 Medium 6.3 Not Defined swagger-ui-2.1.2.min.js Direct 2.2.1
WS-2019-0234 Medium 5.3 Not Defined swagger-ui-2.1.2.min.js Direct 2.2.1
WS-2017-0143 Medium 5.3 Not Defined swagger-ui-2.1.2.min.js Direct 2.2.3
CVE-2016-1000229 Medium 5.3 Not Defined 0.2% swagger-ui-2.1.2.min.js Direct 2.2.1
CVE-2018-25031 Low 2.3 Not Defined 0.4% swagger-ui-2.1.2.min.js Direct swagger-ui - 4.1.3;swagger-ui-dist - 4.1.3

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

Details

WS-2016-0034

Vulnerable Library - swagger-ui-2.1.2.min.js

Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API

Library home page: https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/2.1.2/swagger-ui.min.js

Path to vulnerable library: /WebContent/swagger/swagger-ui.min.js

Dependency Hierarchy:

  • swagger-ui-2.1.2.min.js (Vulnerable Library)

Found in HEAD commit: 2aa4425a74208f6bd9358a1967cc39a7ca394cdd

Found in base branch: main

Vulnerability Details

Swagger-ui has vulnerability when "Produces" and "consumes" Content-types in schema are not escaped and allow XSS

Publish Date: 2016-01-13

URL: WS-2016-0034

Threat Assessment

Exploit Maturity: Not Defined

EPSS:

CVSS 4 Score Details (6.9)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2016-01-13

Fix Resolution: v2.1.5

CVE-2016-1000233

Vulnerable Library - swagger-ui-2.1.2.min.js

Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API

Library home page: https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/2.1.2/swagger-ui.min.js

Path to vulnerable library: /WebContent/swagger/swagger-ui.min.js

Dependency Hierarchy:

  • swagger-ui-2.1.2.min.js (Vulnerable Library)

Found in HEAD commit: 2aa4425a74208f6bd9358a1967cc39a7ca394cdd

Found in base branch: main

Vulnerability Details

swagger-ui before 2.2.1 automatically executes external Javascript that is loaded in via the url query string parameter

Publish Date: 2019-07-11

URL: CVE-2016-1000233

Threat Assessment

Exploit Maturity: Not Defined

EPSS:

CVSS 4 Score Details (6.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

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

Release Date: 2019-07-11

Fix Resolution: 2.2.1

WS-2019-0234

Vulnerable Library - swagger-ui-2.1.2.min.js

Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API

Library home page: https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/2.1.2/swagger-ui.min.js

Path to vulnerable library: /WebContent/swagger/swagger-ui.min.js

Dependency Hierarchy:

  • swagger-ui-2.1.2.min.js (Vulnerable Library)

Found in HEAD commit: 2aa4425a74208f6bd9358a1967cc39a7ca394cdd

Found in base branch: main

Vulnerability Details

Swagger-UI versions before 2.2.1 are vulnerable to XSS when allowing HTML code in the swagger.apiInfo.description value without proper sanitization, which may allow attackers to execute arbitrary JavaScript.

Publish Date: 2015-01-28

URL: WS-2019-0234

Threat Assessment

Exploit Maturity: Not Defined

EPSS:

CVSS 4 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

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

Release Date: 2015-01-28

Fix Resolution: 2.2.1

WS-2017-0143

Vulnerable Library - swagger-ui-2.1.2.min.js

Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API

Library home page: https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/2.1.2/swagger-ui.min.js

Path to vulnerable library: /WebContent/swagger/swagger-ui.min.js

Dependency Hierarchy:

  • swagger-ui-2.1.2.min.js (Vulnerable Library)

Found in HEAD commit: 2aa4425a74208f6bd9358a1967cc39a7ca394cdd

Found in base branch: main

Vulnerability Details

Affected versions of the package are vulnerable to Cross-site Scripting (XSS) due to not escaping html script tags.

Publish Date: 2016-09-01

URL: WS-2017-0143

Threat Assessment

Exploit Maturity: Not Defined

EPSS:

CVSS 4 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2016-09-01

Fix Resolution: 2.2.3

CVE-2016-1000229

Vulnerable Library - swagger-ui-2.1.2.min.js

Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API

Library home page: https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/2.1.2/swagger-ui.min.js

Path to vulnerable library: /WebContent/swagger/swagger-ui.min.js

Dependency Hierarchy:

  • swagger-ui-2.1.2.min.js (Vulnerable Library)

Found in HEAD commit: 2aa4425a74208f6bd9358a1967cc39a7ca394cdd

Found in base branch: main

Vulnerability Details

swagger-ui has XSS in key names

Publish Date: 2019-12-20

URL: CVE-2016-1000229

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.2%

CVSS 4 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.npmjs.com/advisories/126

Release Date: 2019-12-20

Fix Resolution: 2.2.1

CVE-2018-25031

Vulnerable Library - swagger-ui-2.1.2.min.js

Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API

Library home page: https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/2.1.2/swagger-ui.min.js

Path to vulnerable library: /WebContent/swagger/swagger-ui.min.js

Dependency Hierarchy:

  • swagger-ui-2.1.2.min.js (Vulnerable Library)

Found in HEAD commit: 2aa4425a74208f6bd9358a1967cc39a7ca394cdd

Found in base branch: main

Vulnerability Details

Swagger UI 4.1.2 and earlier could allow a remote attacker to conduct spoofing attacks. By persuading a victim to open a crafted URL, an attacker could exploit this vulnerability to display remote OpenAPI definitions. Note: This was originally claimed to be resolved in 4.1.3. However, third parties have indicated this is not resolved in 4.1.3 and even occurs in that version and possibly others.
Mend Note: Converted from WS-2021-0461, on 2022-12-21.

Publish Date: 2022-03-11

URL: CVE-2018-25031

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.4%

CVSS 4 Score Details (2.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

For more information on CVSS4 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-qrmm-w75w-3wpx

Release Date: 2022-03-11

Fix Resolution: swagger-ui - 4.1.3;swagger-ui-dist - 4.1.3

@mend-for-github-com mend-for-github-com bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Nov 19, 2023
@mend-for-github-com mend-for-github-com bot changed the title swagger-ui-2.1.2.min.js: 6 vulnerabilities (highest severity is: 7.3) swagger-ui-2.1.2.min.js: 6 vulnerabilities (highest severity is: 6.9) Mar 2, 2024
@mend-for-github-com mend-for-github-com bot changed the title swagger-ui-2.1.2.min.js: 6 vulnerabilities (highest severity is: 6.9) swagger-ui-2.1.2.min.js: 3 vulnerabilities (highest severity is: 6.3) Apr 11, 2024
@mend-for-github-com mend-for-github-com bot changed the title swagger-ui-2.1.2.min.js: 3 vulnerabilities (highest severity is: 6.3) swagger-ui-2.1.2.min.js: 6 vulnerabilities (highest severity is: 6.9) Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend
Projects
None yet
Development

No branches or pull requests

0 participants