mal-2026-13633
Vulnerability from ossf_malicious_packages
Published
2026-08-08 00:51
Modified
2026-08-08 01:38
Summary
Malicious code in modern-localization (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (4be23667d11e7ef3357641973b9188175c2068bd2b580a5628773bcdf03533a5)

On server-side require of modern-localization, the package's main entry runs a top-level async IIFE (syncLanguageSystem) that performs an HTTP GET against a hardcoded jsonbin.io endpoint (https://api.jsonbin.io/v3/b/6a764665da38895dfec7cd5d and https://api.jsonbin.io/v3/b/6a718a58da38895dfeb6e2ed) and executes the returned string as JavaScript with full Node privileges. utils.js passes the fetched record.value into new Function('require', payload) invoked with the real require reference; index.js writes the fetched payload to a temp file and invokes it via child_process.fork. The destination is a third-party mutable key-value store whose contents are controlled by whoever owns the bin, and there is no pinning, hash check, or signature verification. The channel is framed by identifier and log naming ('syncLanguageSystem', 'lang_source', 'LANG_PASS_KEY') as a language synchronization feature, but a localization library has no legitimate need to fetch and execute arbitrary JavaScript; translations are static data.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "dist/index.js",
              "sha256": "2e6411d5da30033532d2a4170c22829776ccb2b71c651adcdf28e2a45fc4a008",
              "tlsh": "6d1264c99a93e1124473b3768b6f9014fd3a952b03268b45799dc1012fb056cc3eaee9"
            },
            {
              "path": "dist/utils.js",
              "sha256": "7d80b0b8279c7953e5bfd8df57ed649b6d44a2e99280850913d7077725378ab5",
              "tlsh": "eb81438597a2f1134533b3b2971f5414f83ad82602379a86ba9dc5512fb086c83fade4"
            }
          ],
          "package_integrity": [
            {
              "filename": "modern-localization-1.1.1.tgz",
              "hashes": {
                "sha1": "6f0e83fcc1226f65fdc48e6abc1eaee533cfbb8c",
                "sha512_sri": "sha512-f6JQBYKmREZ7UXXi2cx4AqPZGN/xM9xC9jIE1x5KlICIaACHe5Jwrqk2luuE+zfWri3dpMHvjdyGgJa7hcZAbw=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "modern-localization"
      },
      "versions": [
        "1.1.1",
        "1.2.1"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-017194",
        "import_time": "2026-08-08T00:53:09.878613066Z",
        "modified_time": "2026-08-08T00:51:44Z",
        "sha256": "fb8c3ecffe571be82855309d66a7e825cda13b98d046060c915e6c8e0dd0d70e",
        "source": "amazon-inspector",
        "versions": [
          "1.1.1"
        ]
      },
      {
        "id": "IN-MAL-2026-017201",
        "import_time": "2026-08-08T01:36:21.627772114Z",
        "modified_time": "2026-08-08T00:53:12Z",
        "sha256": "4be23667d11e7ef3357641973b9188175c2068bd2b580a5628773bcdf03533a5",
        "source": "amazon-inspector",
        "versions": [
          "1.2.1"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4be23667d11e7ef3357641973b9188175c2068bd2b580a5628773bcdf03533a5)\nOn server-side require of modern-localization, the package\u0027s main entry runs a top-level async IIFE (syncLanguageSystem) that performs an HTTP GET against a hardcoded jsonbin.io endpoint (https://api.jsonbin.io/v3/b/6a764665da38895dfec7cd5d and https://api.jsonbin.io/v3/b/6a718a58da38895dfeb6e2ed) and executes the returned string as JavaScript with full Node privileges. utils.js passes the fetched record.value into new Function(\u0027require\u0027, payload) invoked with the real require reference; index.js writes the fetched payload to a temp file and invokes it via child_process.fork. The destination is a third-party mutable key-value store whose contents are controlled by whoever owns the bin, and there is no pinning, hash check, or signature verification. The channel is framed by identifier and log naming (\u0027syncLanguageSystem\u0027, \u0027lang_source\u0027, \u0027LANG_PASS_KEY\u0027) as a language synchronization feature, but a localization library has no legitimate need to fetch and execute arbitrary JavaScript; translations are static data.\n",
  "id": "MAL-2026-13633",
  "modified": "2026-08-08T01:38:10.319764691Z",
  "published": "2026-08-08T00:51:44Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/modern-localization/v/1.1.1"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/modern-localization/v/1.2.1"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in modern-localization (npm)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…