gettext-converter is vulnerable to Prototype Pollution
64
Medium Risk
The PO file parser in gettext-converter assigns parsed msgctxt and msgid values onto result objects using unsafe property assignment in its normalize routine. When PO input contains a context or id such as __proto__ or constructor, parsing with po2js(), po2i18next(), or helpers built on them writes attacker-controlled properties onto Object.prototype or the global Object constructor. This pollutes inherited properties across every object in the process, which can corrupt application state, cause denial of service, or enable further attacks. The fix guards writes with own-property checks and uses Object.defineProperty so crafted keys can no longer reach the prototype chain.
You are affected if you are using a version that falls within the vulnerable range and you parse untrusted or externally influenced PO input with po2js(), po2i18next(), or functions built on them.
gettext-converter is vulnerable to Prototype Pollution in versions 1.0.0 - 1.3.3.
Upgrade the gettext-converter library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant