julie-ng/tidy-jsdoc:package.json

Vulnerabilities

2 via 3 paths

Dependencies

32

Source

GitHub

Commit

1d9b4589

Find, fix and prevent vulnerabilities in your code.

Severity
  • 2
Status
  • 2
  • 0
  • 0

high severity

Infinite loop

  • Vulnerable module: markdown-it
  • Introduced through: jsdoc@3.6.11

Detailed paths

  • Introduced through: tidy-jsdoc@julie-ng/tidy-jsdoc#1d9b45897048514ae3bad947d765139fad2363ba jsdoc@3.6.11 markdown-it@12.3.2
    Remediation: Upgrade to jsdoc@4.0.3.

Overview

markdown-it is a modern pluggable markdown parser.

Affected versions of this package are vulnerable to Infinite loop in linkify inline rule when using malformed input.

Remediation

Upgrade markdown-it to version 13.0.2 or higher.

References

high severity

Internal Property Tampering

  • Vulnerable module: taffydb
  • Introduced through: jsdoc@3.6.11 and taffydb@2.7.3

Detailed paths

  • Introduced through: tidy-jsdoc@julie-ng/tidy-jsdoc#1d9b45897048514ae3bad947d765139fad2363ba jsdoc@3.6.11 taffydb@2.6.2
  • Introduced through: tidy-jsdoc@julie-ng/tidy-jsdoc#1d9b45897048514ae3bad947d765139fad2363ba taffydb@2.7.3

Overview

taffydb is an open source JavaScript library that provides in-memory database capabilities

Affected versions of this package are vulnerable to Internal Property Tampering. taffy sets an internal index for each data item in its DB. However, it is found that the internal index can be forged by adding additional properties into user-input. If an index is found in the query, taffyDB will ignore other query conditions and directly return the indexed data item. Moreover, the internal index is in an easily-guessable format (e.g. T000002R000001). As such, attackers can use this vulnerability to access any data items in the DB and exploit an SQL Injection.

Note: The taffy package has been deprecated by the author. Its successor package, taffydb, is also found to be vulnerable and is not actively maintained.

PoC

var TAFFY = require('taffy');
var friends = TAFFY([
        {"id":1,"gender":"M","username":"Smith","password":"aaa","status":"Active"},
        {"id":2,"gender":"F","username":"Ruth","password":"bbb","status":"Active"},
        {"id":3,"gender":"M","username":"Stevenson","password":"ccc","status":"Active"},
        {"id":4,"gender":"F","username":"Gill","password":"ddd","status":"Active"}
]);

var json = {username:"Smith", "password":"123", "___id":"T000002R000002", "___s":true};
var item1 = friends(json);
console.log(item1.first());

Remediation

There is no fixed version for taffydb.

References