Internal Property Tampering Affecting taffy package, versions *



    Exploit Maturity Proof of concept
    Attack Complexity Low
    Confidentiality High
Expand this section
7.5 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-TAFFY-546521
  • published 5 Feb 2020
  • disclosed 5 Feb 2020
  • credit Feng Xiao (xiaofen9)

How to fix?

There is no fixed version for taffy.


taffy is an opensouce library that brings database features into your JavaScript applications.

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.

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.


var TAFFY = require('taffy');
var friends = TAFFY([

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