Find, fix and prevent vulnerabilities in your code.
critical severity
new
- Vulnerable module: debug
- Introduced through: @angular/localize@18.2.14
Detailed paths
-
Introduced through: @ngx-formly/common@formly-js/ng-formly#4cc44d96e94350ef3b90ff0ae7be33a084ea2c3e › @angular/localize@18.2.14 › @babel/core@7.25.2 › debug@4.4.3
-
Introduced through: @ngx-formly/common@formly-js/ng-formly#4cc44d96e94350ef3b90ff0ae7be33a084ea2c3e › @angular/localize@18.2.14 › @babel/core@7.25.2 › @babel/traverse@7.28.4 › debug@4.4.3
-
Introduced through: @ngx-formly/common@formly-js/ng-formly#4cc44d96e94350ef3b90ff0ae7be33a084ea2c3e › @angular/localize@18.2.14 › @babel/core@7.25.2 › @babel/helper-module-transforms@7.28.3 › @babel/traverse@7.28.4 › debug@4.4.3
-
Introduced through: @ngx-formly/common@formly-js/ng-formly#4cc44d96e94350ef3b90ff0ae7be33a084ea2c3e › @angular/localize@18.2.14 › @babel/core@7.25.2 › @babel/helper-module-transforms@7.28.3 › @babel/helper-module-imports@7.27.1 › @babel/traverse@7.28.4 › debug@4.4.3
Overview
debug is a malicious package. This package version contains malicious code that listens for network traffic when run in the context of a browser and focuses on crypto transactions. The malicious code injected to the packages activates a hook whenever a Web3 wallet is present. Once activated the code intercepts and modifies any transaction with ETH value and points it to another address presumably controlled by the attacker. The malicious code also listens for swap/transfer transactions to tamper with as well.
Note:
This advisory is under ongoing investigation and can be updated with additional details.
Remediation
Avoid using all malicious instances of the debug
package.
References
medium severity
- Vulnerable module: inflight
- Introduced through: @nativescript/core@8.9.9
Detailed paths
-
Introduced through: @ngx-formly/common@formly-js/ng-formly#4cc44d96e94350ef3b90ff0ae7be33a084ea2c3e › @nativescript/core@8.9.9 › @nativescript/hook@2.0.0 › glob@7.2.3 › inflight@1.0.6
Overview
Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime via the makeres
function due to improperly deleting keys from the reqs
object after execution of callbacks. This behavior causes the keys to remain in the reqs
object, which leads to resource exhaustion.
Exploiting this vulnerability results in crashing the node
process or in the application crash.
Note: This library is not maintained, and currently, there is no fix for this issue. To overcome this vulnerability, several dependent packages have eliminated the use of this library.
To trigger the memory leak, an attacker would need to have the ability to execute or influence the asynchronous operations that use the inflight module within the application. This typically requires access to the internal workings of the server or application, which is not commonly exposed to remote users. Therefore, “Attack vector” is marked as “Local”.
PoC
const inflight = require('inflight');
function testInflight() {
let i = 0;
function scheduleNext() {
let key = `key-${i++}`;
const callback = () => {
};
for (let j = 0; j < 1000000; j++) {
inflight(key, callback);
}
setImmediate(scheduleNext);
}
if (i % 100 === 0) {
console.log(process.memoryUsage());
}
scheduleNext();
}
testInflight();
Remediation
There is no fixed version for inflight
.