Intel

AIKIDO-2026-63709

gettext-converter is vulnerable to Prototype Pollution

Prototype PollutionGHSA-3qx4-pp8q-43c4 Published Today

64

Medium Risk

This Affects:

JSgettext-converter
1.0.0 - 1.3.3
Fixed in 1.3.4
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

gettext-converter is vulnerable to Prototype Pollution in versions 1.0.0 - 1.3.3.

How to fix this

Upgrade the gettext-converter library to the patch version.