mal-2026-12418
Vulnerability from ossf_malicious_packages
Published
2026-08-05 12:26
Modified
2026-08-21 11:26
Summary
Malicious code in postcss-animate-css-vars (npm)
Details

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

Source: amazon-inspector (5e40aa4b6595789e4ba4b39f82e63526286b36a64ffad2be27536c69c8207590)

src/normalize-options.js is heavily obfuscated (RC4-decoded string array, hex-numeric literals, rotating string-array shuffler, dead-code comparison branches) while the rest of the package (index.js, plugin.js, root.js, declarations.js) is plain readable code. When the PostCSS plugin is instantiated (createPlugin -> normalizeOptions), the loader assembles an HTTPS URL from obfuscated string-array entries, appends keys from the caller-supplied options.features sub-object as query parameters, fetches a JSON response, base64-decodes its message field, and executes the decoded code with new Function('require', code)(require) — arbitrary code execution in every downstream consumer's build/CI process. The loader also writes a wrapper file to the OS tmpdir (named with process.pid) containing require('<pkg>')(<options>); setInterval(()=>{},2147483647); and spawns process.execPath detached with stdio ignored and env LT1_STAGE1_CHILD=1, then calls child.unref(). The detached node child re-enters the loader branch, decoupling the fetch-and-eval from the parent build and keeping it alive on a ~24.8-day interval after PostCSS exits, enabling persistent staging beyond the build window. Package metadata (name postcss-animate-css-vars, description 'PostCSS plugin for animate.css', author 'Alex Rivera alex@cssanimation.dev', homepage cssanimation.dev) presents as a legitimate PostCSS ecosystem plugin, but the shipped code contains no animate.css handling in the obfuscated loader path — the metadata is cover for the loader.

Source: ghsa-malware (28c95517227820c9394897cf41111e5a6992063c2ea1b0f0f9fcb1e530189eac)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

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.

{
  "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": "src/normalize-options.js",
              "sha256": "bcb1888f194f10bdaacca1c61adcde61a981dab714244b0e9a144ecbbe318cf3",
              "tlsh": "52b2a4a063d42e98b6436fa7b72ff4c6e83e499e3560448bf0287c5c5fa2119d6d5730"
            },
            {
              "path": "package.json",
              "sha256": "d372c0116a13e5c9e2277717c4da77ea4d67e9ec84b5529207b95bfd44f52bb2",
              "tlsh": "33214da1d5249ca317d51af0995e0042fe2299178858fc2973ae411d4f4d66b43ff3be"
            }
          ],
          "package_integrity": [
            {
              "filename": "postcss-animate-css-vars-2.0.3.tgz",
              "hashes": {
                "sha1": "5e76d1ca7068eb55c87a5b20554dcf34c3d6f0bf",
                "sha512_sri": "sha512-RaOX8B3I1FgPX+G7jVFD/BTVaLiERwkg3OFexqgIK+iqHarrLkk5ARoNrqn7OyGQBvP8yZI8ogG7IS+x97vqpA=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "postcss-animate-css-vars"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "2.0.3"
      ]
    }
  ],
  "aliases": [
    "GHSA-432g-6qr7-8hvh"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-014658",
        "import_time": "2026-08-05T13:08:34.594660787Z",
        "modified_time": "2026-08-05T12:26:45Z",
        "sha256": "5e40aa4b6595789e4ba4b39f82e63526286b36a64ffad2be27536c69c8207590",
        "source": "amazon-inspector",
        "versions": [
          "2.0.3"
        ]
      },
      {
        "id": "GHSA-432g-6qr7-8hvh",
        "import_time": "2026-08-21T11:24:15.702354031Z",
        "modified_time": "2026-08-21T11:14:21Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "28c95517227820c9394897cf41111e5a6992063c2ea1b0f0f9fcb1e530189eac",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5e40aa4b6595789e4ba4b39f82e63526286b36a64ffad2be27536c69c8207590)\nsrc/normalize-options.js is heavily obfuscated (RC4-decoded string array, hex-numeric literals, rotating string-array shuffler, dead-code comparison branches) while the rest of the package (index.js, plugin.js, root.js, declarations.js) is plain readable code. When the PostCSS plugin is instantiated (createPlugin -\u003e normalizeOptions), the loader assembles an HTTPS URL from obfuscated string-array entries, appends keys from the caller-supplied options.features sub-object as query parameters, fetches a JSON response, base64-decodes its `message` field, and executes the decoded code with `new Function(\u0027require\u0027, code)(require)` \u2014 arbitrary code execution in every downstream consumer\u0027s build/CI process. The loader also writes a wrapper file to the OS tmpdir (named with process.pid) containing `require(\u0027\u003cpkg\u003e\u0027)(\u003coptions\u003e); setInterval(()=\u003e{},2147483647);` and spawns `process.execPath` detached with stdio ignored and env `LT1_STAGE1_CHILD=1`, then calls `child.unref()`. The detached node child re-enters the loader branch, decoupling the fetch-and-eval from the parent build and keeping it alive on a ~24.8-day interval after PostCSS exits, enabling persistent staging beyond the build window. Package metadata (name postcss-animate-css-vars, description \u0027PostCSS plugin for animate.css\u0027, author \u0027Alex Rivera \u003calex@cssanimation.dev\u003e\u0027, homepage cssanimation.dev) presents as a legitimate PostCSS ecosystem plugin, but the shipped code contains no animate.css handling in the obfuscated loader path \u2014 the metadata is cover for the loader.\n\n## Source: ghsa-malware (28c95517227820c9394897cf41111e5a6992063c2ea1b0f0f9fcb1e530189eac)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n",
  "id": "MAL-2026-12418",
  "modified": "2026-08-21T11:26:13.397220525Z",
  "published": "2026-08-05T12:26:45Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/postcss-animate-css-vars/v/2.0.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-432g-6qr7-8hvh"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in postcss-animate-css-vars (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…

Loading…