Skip to content

Commit a43cffe

Browse files
committed
fix prototype pollution vulnerability
1 parent a63061a commit a43cffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var path = require('path')
1010

1111
var relative = path.relative
1212
var lastCwd = process.cwd()
13-
var cache = {}
13+
var cache = Object.create(null)
1414

1515
/**
1616
* Expose cachedPathRelative

0 commit comments

Comments
 (0)