Kwetsbaarheid · Bron: GitHub Security Advisories · Zekerheid: waarschijnlijk · Gepubliceerd 30 september 2026
Axios: Prototype Pollution Gadget in axios toFormData Options
Geen actie nodig; we volgen dit.
Werk je bij een gemeente? Log in om te zien of dit jouw gemeente raakt. Het oordeel komt dan uit het register van je gemeente.
Deze dreiging heeft een beperkte relevantie voor gemeenten. Een niet-gepatchte installatie van dit product kan worden misbruikt. Reguliere opvolging door ICT-beheer en de ISO volstaat; bestuurlijke betrokkenheid is nu niet nodig.
Betrokken rollen: CISO · ISO · ICT beheer · Leveranciersmanager
## Summary Axios form serialization reads `visitor`, `maxDepth`, `dots`, `indexes`, `metaTokens`, and `Blob` from an internal options object without own-property guards. When `Object.prototype` has been polluted elsewhere in the same process, those inherited values can change how axios serializes multipart and URL-encoded request bodies. Axios does not create the prototype pollution source. This is a read-side gadget: axios turns an existing same-process pollution condition into altered request serialization or request failures. ## Impact The impact depends on which property is polluted and which axios serialization path the application uses. Polluted `dots`, `indexes`, or `metaTokens` can change field names and cause the receiving service to parse different data than the caller intended. Polluted `maxDepth` can cause nested form submissions to throw `ERR_FORM_DATA_DEPTH_EXCEEDED`, producing request-level or service-level denial of service for affected workflows. Polluted `visitor` can execute as the serializer visitor if an attacker can place a function on `Object.prototype`, but that condition generally implies a stronger same-process code-execution or malicious-dependency primitive and should be described carefully. ## Affected Functionality Affected: - `axios.toFormData()`. - `transformRequest` paths that serialize plain objects to `multipart/form-data`. - URL-encoded form serialization paths that rely on the same helper. - `formSerializer` option defaults when the relevant properties are absent as own properties. Not affected: - JSON request bodies. - Requests that do not invoke `toFormData()`. - Processes where `Object.prototype` is not polluted. ## Technical Details `lib/helpers/toFormData.js` merges caller options with defaults using `utils.toFlatObject()`. When `options` is `undefined`, `toFlatObject()` returns the default object unchanged: ```js { metaTokens: true, dots: false, indexes: false } ``` That default object has `Object.prototype` in its prototype chain. `toFormData()` then reads behavior-affecting values directly: ```js const metaTokens = options.metaTokens; const visitor = options.visitor || defaultVisitor; const dots = options.dots; const indexes = options.indexes; const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob); const maxDepth = options.maxDepth === undefined ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth; ``` These reads can resolve inherited polluted properties. Local code review confirmed the direct reads in `v1.18.1`. Tag checks show the option-based form serializer exists in `v0.28.0` and later; `maxDepth` appears in the `1.x` line from the form recursion fix. ## Proof of Concept of Attack Constrained local demonstration: ```js Object.prototype.maxDepth = 1; await axios.post(url, { a: { b: { c: 'value' } } }, { headers: { 'Content-Type': 'multipart/form-data' } }); ``` Expected safe behavior is that the default max depth is used unless the caller sets an own `formSerializer.maxDepth`. Current behavior reads the inherited value and can throw `ERR_FORM_DATA_DEPTH_EXCEEDED`. For serializer alteration, polluting `Object.prototype.dots = true` changes nested field naming from bracket notation to dot notation when the caller did not opt into that behavior. ## Workarounds Avoid serializing attacker-controlled objects as form data in a process with known prototype pollution. As a partial mitigation, callers can pass an own `formSerializer` object that sets explicit safe values for all relevant keys, including `visitor`, `maxDepth`, `dots`, `indexes`, `metaTokens`, and `Blob`. Original report ### Summary _axios v1.18.1 contains a read-side prototype pollution gadget in its form data serialization logic. Six option properties (`visitor`, `maxDepth`, `dots`, `indexes`, `metaTokens`, `Blob`) are read from a plain JavaScript object that inherits from `Object.prototype` without `hasOwnProperty` guards. When `Object.prototype` has been polluted elsewhere in the process a common consequence o
CVE-2026-101909
Leveranciers: npm
Exploiteerbaarheid: geen exploit bekend. Blootstelling: niet internet-facing / geen bekende blootstelling. Gemeentelijke relevantie: geen match met de gemeentelijke context. Impact: alleen technische impact. Bronvertrouwen: middel.
Exploiteerbaarheid · Geen exploit bekend
geen exploit bekend
Blootstelling · Laag
niet internet-facing / geen bekende blootstelling
Gemeentelijke relevantie · Geen match
geen match met de gemeentelijke context
Deel geen vertrouwelijke of persoonsgegevens in dit formulier. Beschrijf je melding algemeen; gevoelige details horen niet op een publieke radar thuis.
Impact · Technisch
alleen technische impact
Zekerheid en bronkwaliteit · Middel
beperkt bevestigd
Mitigatie · Laag
geen mitigatie bekend
EPSS-kans · licht verhogend
EPSS schat de kans op misbruik binnen 30 dagen op 1%.
Leveranciersketenimpact · verhogend
De dreiging raakt een leverancier of de toeleveringsketen; gemeenten zijn sterk afhankelijk van externe leveranciers.
Exploit alleen geclaimd · verlagend
Een exploit wordt geclaimd (community/onbevestigd) maar is niet onafhankelijk geverifieerd.
Beperkte zekerheid van het signaal · verlagend
De zekerheid is 'waarschijnlijk'; een onbevestigd signaal verlaagt de urgentie tot het is geverifieerd.
Alleen theoretisch risico · verlagend
Er is (nog) geen misbruik, exploit of EPSS-signaal; het risico is vooralsnog theoretisch, wat de urgentie verlaagt.
Deze dreiging scoort 5/100 voor de gemeentelijke relevantie. Meegewogen: een vooralsnog uitsluitend theoretische kwetsbaarheid en geen leverancier uit de catalogus of gemeentelijke context. Wel meegewogen: een leveranciers- of ketenrisico. Geraakte processen: Leveranciersketen.
Geraakte processen: Leveranciersketen
Geraakte technologie: Opensource, axios, npm
Categorie 'kwetsbaarheid': er is een CVE aan de dreiging gekoppeld. Ernst 'laag' bepaald op basis van: geen ernst-signalen gevonden, standaard 'laag'. Zekerheid 'waarschijnlijk': gerenommeerd securityonderzoek (GitHub Security Advisories). Geen bekende leveranciers of producten herkend.
De prioriteit volgt vaste regels en is na te rekenen; er komt geen AI-inschatting aan te pas. Weeg de aannames mee voor je eigen omgeving.