phpjs@1.0.0 vulnerabilities

php.js offers community built php functions in javascript

Direct Vulnerabilities

Known vulnerabilities in the phpjs package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Prototype Pollution

phpjs is a community built php binding in javascript.

Affected versions of this package are vulnerable to Prototype Pollution via parse_str.

POC:

require('phpjs').parse_str("__proto__[polluted]=true",{});
console.log(polluted) //true

How to fix Prototype Pollution?

There is no fixed version for phpjs.

*
  • L
Regular Expression Denial of Service (ReDoS)

phpjs is a php.js offers community built php functions in javascript.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks. This can cause an impact of about 10 seconds matching time for data 45 characters long.

How to fix Regular Expression Denial of Service (ReDoS)?

There is no fixed version for phpjs.

*