Vulnerabilities |
3 via 7 paths |
|---|---|
Dependencies |
174 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
new
- Vulnerable module: parse5
- Introduced through: cheerio@1.2.0
Detailed paths
-
Introduced through: @compodoc/compodoc@compodoc/compodoc › cheerio@1.2.0 › parse5@7.3.0
-
Introduced through: @compodoc/compodoc@compodoc/compodoc › cheerio@1.2.0 › parse5-htmlparser2-tree-adapter@7.1.0 › parse5@7.3.0
-
Introduced through: @compodoc/compodoc@compodoc/compodoc › cheerio@1.2.0 › parse5-parser-stream@7.1.2 › parse5@7.3.0
Overview
Affected versions of this package are vulnerable to Uncaught Exception in the Preprocessor class, whose _processSurrogate method pairs a code unit with a following low surrogate without confirming the first unit is a high surrogate. Two consecutive low surrogates such as U+DC00 U+DC00 decode to the out-of-range code point 0x110000, and String.fromCodePoint throws a RangeError that propagates out of parse, parseFragment, and the SAX and streaming parsers. An attacker who can supply HTML to an application that parses it, directly or through a dependent such as cheerio or jsdom, can crash the Node.js process with a few bytes of input. This affects parse5 built on the TypeScript tokenizer, where characters are emitted with String.fromCodePoint.
Remediation
Upgrade parse5 to version 8.1.1 or higher.
References
medium severity
new
- Vulnerable module: picomatch
- Introduced through: @angular-devkit/schematics@22.0.4, tinyglobby@0.2.17 and others
Detailed paths
-
Introduced through: @compodoc/compodoc@compodoc/compodoc › @angular-devkit/schematics@22.0.4 › @angular-devkit/core@22.0.4 › picomatch@4.0.4
-
Introduced through: @compodoc/compodoc@compodoc/compodoc › tinyglobby@0.2.17 › picomatch@4.0.7
-
Introduced through: @compodoc/compodoc@compodoc/compodoc › ts-morph@28.0.0 › @ts-morph/common@0.29.1 › tinyglobby@0.2.17 › picomatch@4.0.7
Overview
Affected versions of this package are vulnerable to Incorrect Regular Expression via the globstar function in lib/parse.js, where globstar (**) patterns are compiled without the dotAll flag, causing the generated regular expression to use . which does not match line terminator characters. An attacker who controls file names, object keys, or archive entry names can embed newline characters in those names to evade **-based deny patterns, causing excluded resources to be included and exposed.
Remediation
A fix was pushed into the master branch but not yet published.
References
medium severity
new
- Vulnerable module: i18next
- Introduced through: i18next@26.3.3
Detailed paths
-
Introduced through: @compodoc/compodoc@compodoc/compodoc › i18next@26.3.3Remediation: Upgrade to i18next@26.3.4.
Overview
i18next is an internationalization framework for browser or any other javascript environment (eg. node.js).
Affected versions of this package are vulnerable to Modification of Assumed-Immutable Data (MAID) via the deepExtend function in src/utils.js, which uses the in operator to check for property existence on the target object. Because the in operator traverses the prototype chain, an attacker who can supply a malicious resource bundle containing a property named hasOwnProperty can overwrite Object.prototype.hasOwnProperty, causing process-wide corruption of that built-in and crashing any subsequent code that relies on it.
Note: This is only exploitable when deepExtend is invoked with deep merging enabled, such as through addResourceBundle with the deep parameter set to true.
PoC
import i18next from 'i18next';
await i18next.init({ lng: 'en', resources: { en: { translation: {} } } });
const payload = { hasOwnProperty: { call: 'corrupted' } };
i18next.addResourceBundle('en', 'translation', payload, /* deep */ true, /* overwrite */ true);
// Process-wide corruption:
Object.prototype.hasOwnProperty.call({}, 'test'); // TypeError: ... is not a function
Note: The PoC uses i18next initialised with a default English translation resource and demonstrates process-wide corruption by overwriting Object.prototype.hasOwnProperty via addResourceBundle with deep and overwrite flags set to true.
Remediation
Upgrade i18next to version 26.3.4 or higher.