Key Takeaways
- RequireJS is an OpenJS Archived project, so no upstream maintainer is committed to fixing future vulnerabilities.
- Moving to ES modules touches module definitions, loading behavior, build optimization, testing, and deployment.
- CVE-2024-38999 scores anywhere from Medium to Critical depending on the source, so reachability matters more.
- On Magento and Moodle, RequireJS is built into the platform, so leaving AMD is a platform-level project.
RequireJS helped large browser applications become modular before native ES modules existed. Active development wound down years ago, and that would be unremarkable except that AMD loaders still sit underneath a lot of enterprise front-end code, often on platforms where the loader isn’t yours to swap out.
This post covers what end of life means for a loader like RequireJS, how to handle a headline CVE with wildly inconsistent severity scores, and why moving off AMD is an architecture project rather than a dependency bump.
RequireJS solved modular JavaScript before the browser did
Somewhere in your organization there’s probably a front end that still boots through a data-main attribute, and nobody on the current team wrote it. It has loaded fine for about a decade, and that’s the problem.
RequireJS arrived when browsers had no native way to split JavaScript into modules and fetch them on demand. It implemented AMD, the Asynchronous Module Definition format, so large codebases could declare dependencies explicitly and load them in parallel instead of concatenating everything into one file and praying the order held. For teams shipping hundreds of thousands of lines to the browser in 2013, that structure was the difference between a maintainable app and a global-variable swamp.
You still find it in specific places. A Magento 2 storefront. A Moodle deployment. A 2015-era Backbone or Knockout application. An internal reporting tool wired up with data-main that no one has opened since the person who built it left.
Nothing is broken, nobody is actively maintaining it, and the architecture underneath doesn’t allow a small, surgical fix. You can’t patch your way out of an architectural decision.
Is RequireJS still maintained?
Not in any sense you’d want to build a support plan on, and the label is official. The OpenJS Foundation lists RequireJS as an Archived project, alongside other end-of-life libraries such as jQuery Mobile, jQuery UI, Sizzle, and the Pointer Events Polyfill.
The repository is still public and the npm package still installs, but Archived status gives you no reason to expect anyone upstream to respond when the next advisory lands.
Did You Know: RequireJS shipped a 2.3.8 release on November 30, 2025, more than five years after OpenJS first put it on its end-of-life list. So the label doesn’t mean the code is frozen. It means nobody has committed to maintaining it, and that’s a very different thing.
AMD solved browser module loading before the platform had an answer, and native ES modules plus modern bundlers eventually absorbed the entire job it was built for. The project has even been asked publicly to state its status on its own front page. That page still names 2.3.7 as the latest release and says nothing about the Archived label.
Reading a CVE with three different severities
CVE-2024-38999 is the finding that shows up on RequireJS scans. It’s a prototype pollution bug in s.contexts._.configure that affects every release through 2.3.6, and the fix shipped in 2.3.7 in July 2024.
Now look at how the databases score the same bug.
| Source | CVSS | Severity |
|---|---|---|
| NVD (NIST) | No score assigned | Not enriched |
| CISA-ADP | 10.0 (v3.1) | Critical |
| Tenable | 9.3 (v4.0) | Critical |
| GitHub Advisory | 8.9 (v4.0) | High |
| Snyk | 6.9 (v4.0) | Medium |
The gap looks huge, but most of it comes from scoring mechanics rather than any real disagreement about the bug. CISA-ADP’s 10.0 is CVSS v3.1. Tenable’s 9.3 and GitHub’s 8.9 share the same CVSS v4.0 base metrics, and GitHub’s lower number comes from adding the Exploit Maturity threat metric at Proof-of-Concept (E:P). The real outlier is Snyk’s Medium, which rests on a much lower impact assessment.
The CVE’s EPSS score is about 0.76 percent (0.0076 on the 0 to 1 scale, as of September 14, 2026), so the model puts the odds of exploitation in the next 30 days under one percent. It still ranks mid-pack among all scored CVEs (53rd percentile), but that percentile is a ranking against other CVEs, not a probability.
Part of the mess is how the record was handled. NVD still lists CVE-2024-38999 as Deferred, so each downstream database applied its own scoring assumptions to a record NVD never analyzed. RequireJS also picked up a second prototype pollution report in the same period. That one, CVE-2024-38998, targeted the config function and was rejected in January 2025 after its CNA concluded it wasn’t a security issue.
For triage, the score is only one input, and reachability deserves more weight than the number. Can attacker-controlled data reach the object your application passes to requirejs.config()? That call is what feeds s.contexts._.configure. If the answer is no, the practical risk is low regardless of the badge color.
Watch Out: A disputed score doesn’t remove the finding from your report. “We think this one is overrated” is an opinion, not a remediation.
In practice, if the CVE is in your report and you can’t move to a fixed version, you need either a patched build or a written exploitability statement. An argument about CVSS doesn’t count as either one.
Choosing a RequireJS alternative is an architecture decision
Swapping RequireJS for something newer sounds like a dependency change. It’s closer to deciding how your application loads code at all.
There are four realistic destinations, and they aren’t equivalent. Native ES modules let the browser or runtime handle loading, and RequireJS disappears entirely. Bundler-managed modules hand the module graph to webpack, Vite, or esbuild, which resolve it at build time and ship optimized output. Incremental adapters and interop shims let AMD and ES modules coexist through a long migration. And plain script loading is still a real requirement in some older or locked-down environments.
Underneath all four sits one question that’s easy to skip. Does the application still need runtime module loading, or was that a constraint of the era it was built in? A lot of AMD architecture exists purely because 2013 browsers gave no alternative.
Then there are the assumptions baked into the code itself, and this is where estimates go wrong. Expect named and anonymous module definitions mixed in the same tree, plugin prefixes such as text! for loading templates, aliases defined in paths, and shim entries for non-AMD globals. Expect circular dependencies the loader happened to tolerate, globals wrapped as modules to look modular without being so, and optimizer configuration that produces deployment-specific bundles.
Insider Tip: Grep the codebase for text!, shim, and paths before scoping anything. Those three patterns predict migration pain better than raw file count, because each one encodes runtime behavior a bundler won’t reproduce for free.
Pick the destination before anyone touches code. Converting to ES modules and reproducing an optimizer artifact layout are different projects with different budgets.
Why automated conversion only gets you partway
Codemods and jscodeshift transforms are real, and they do move syntax. For plain static modules, a define([...], function(){}) block becomes import statements without much drama. The trouble is that syntax was never the hard part.
Runtime assumptions don’t transform. Load order and side effects can shift the moment modules resolve differently, and an app that relied on a specific AMD load sequence can break in ways no static analysis flags. Tests are often wired directly to RequireJS configuration, so they fail for reasons unrelated to the code under test. Production deployments may expect a particular optimized artifact layout that a new bundler simply doesn’t produce. And dynamic module names, the ones assembled from variables at runtime, resist static analysis by definition.
Then there’s the platform trap, which is exactly where a Magento or Moodle deployment lives. On those platforms, RequireJS is part of the front-end architecture. You can usually extend its configuration (Magento modules and themes ship their own requirejs-config.js files, for instance), but replacing the loader itself is bounded by what the platform version supports.
From the Trenches: Picture a retailer on a heavily customized Magento install with 30-odd custom RequireJS modules and a theme that overrides parts of the platform’s loader config. A platform upgrade may bring a newer bundled RequireJS, but the storefront still boots through AMD afterward. Getting off RequireJS there depends on the platform’s roadmap as much as yours, and no codemod touches it.
So start with a counting exercise before any estimate. Count the files. Count the shim entries. Work out how much of the loader setup is yours and how much belongs to the platform. Those three answers shape nearly everything downstream, and the last one decides whether a migration is even in your control.
A staged route from AMD to modern modules
When a migration is in scope, staging it beats a big-bang rewrite almost every time. The order that tends to hold up in production starts with mapping the module graph so you know what depends on what. From there, convert leaf modules and other low-risk boundaries first, and introduce compatibility layers on purpose rather than by accident when something breaks. Convert tests alongside the production modules they cover, not afterward. Measure bundle size and loading behavior after each stage, and remove shims only after every consumer of them is gone.
Each stage should leave the app shippable. The point of leaf-first ordering is that a low-risk module can be reverted cleanly if the loading behavior shifts, which a deeply depended-on module can’t.
Pro Tip: Where the architecture allows it, run the old RequireJS build and the new bundler build side by side behind a feature flag during conversion, and diff the network waterfall between the two before removing the old loader. A changed request order is often the first hint that a side effect moved.
Not every application belongs on this path, though. The right move depends on who owns the build and how frozen the artifact is. With a small codebase and full control of the build, convert to ES modules and be done with it. When the platform owns the loader, patch in place and put the platform upgrade on a dated roadmap. For a frozen artifact or air-gapped requirements, patch in place and document exploitability for the auditor.
When the existing loader still needs protection
Sometimes migration isn’t on this quarter’s table, and the loader still needs to be safe in the meantime. That tends to happen in long-lived enterprise portals, embedded administrative consoles, and products with controlled upgrade windows. It also happens in applications being replaced rather than modernized, and in systems whose regression coverage can’t yet support a loader migration.
Be clear-eyed about the ceiling. Moving to 2.3.7 or the current 2.3.8 closes CVE-2024-38999, but that’s as far as upstream will take you. Nothing points to a 2.4. There’s no maintenance commitment behind the next advisory, and no guaranteed response time if one lands.
Reality Check: Upgrading to the latest RequireJS isn’t the same as being supported. A fixed version today says nothing about the vulnerability filed next year.
TuxCare’s Endless Lifecycle Support (ELS) for RequireJS covers versions 2.1.22 and 2.3.6, delivered as npm packages from TuxCare’s hosted registry, with SBOM and VEX documents and response targets tied to CVSS severity. This is stewardship work rather than upstream development. The team checks whether each new CVE applies to the covered versions, backports the fix, and tests every build for integrity, functionality, and regressions before it ships, so existing code keeps working the way it does today. That last part matters for a loader you can’t afford to have behave differently. It’s one piece of TuxCare’s broader EOL library support for teams stuck on components upstream has moved past.
OpenJS sustainability after a project’s active chapter
RequireJS being an OpenJS Archived project isn’t the end of its security story. The Foundation’s Ecosystem Sustainability Program exists precisely so archived, EOL, and older versions can receive commercial security services, with a share of the revenue going back to the Foundation and its projects. TuxCare is a Gold member and a provider in that program, and its patches stay downstream. They don’t become upstream RequireJS releases.
So treat RequireJS as part of the architecture holding a front end together, because that’s what it is. Deleting it on a Friday afternoon won’t go well, and replacing it deserves more than a rushed package swap.
