lindell / lindell/JsBarcode

Vulnerability found when using sonatype Vulnerability Scanner

Open
#330 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**sonatype-2019-0115**
The jquery package is vulnerable to Prototype Pollution. The jQuery.extend and jQuery.fn.extend functions defined in many files allow an untrusted object to extend Object.prototype. An attacker can modify and add prototype properties to JavaScript objects and can potentially leverage those changes to crash the application or execute remote code.

NOTE: This vulnerability has been assigned CVE-2019-11358.

Advisory Deviation Notice: The Sonatype security research team has assessed the CVSS score for this vulnerability to be 9.8 given the nature of prototype pollution and the high potential for damage in this particular case, as opposed to a score of 6.1 reported by NVD.

**sonatype-2014-0026**
The jQuery package is vulnerable to Cross-Site Scripting (XSS). The parseHTML() function in the parseHTML.js, jquery.js files allow JavaScript to be executed immediately when it's embedded within the event attributes. An attacker can exploit this vulnerability by injecting malicious JavaScript containing events handlers which, when rendered, results in the execution of arbitrary script.

**sonatype-2016-0107**
The jQuery library is vulnerable to Cross-Site Scripting (XSS) when no explicit data type is provided within an AJAX request. The ajaxSetup() method in script.js allows execution of responses from third-party origins by default. A remote attacker can exploit this vulnerability by sending a malicious response to an AJAX request, resulting in the execution of the Cross Origin response.

NOTE: This vulnerability has been assigned CVE-2015-9251.

it seems some jsbarcode's dependencies using the old version of jQuery

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the project's dependency declarations and dependency tree to identify which JsBarcode dependencies bring in the vulnerable jQuery versions. Update the affected dependencies where possible, then rerun the Sonatype vulnerability scan and verify that the listed CVEs are no longer reported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.