Check whether any request middleware clones config into a plain object before dispatch, then validate whether the service uses the Node HTTP adapter and accepts inputs from other vulnerable packages. If both conditions exist, test for prototype pollution and confirm that proxy is always an own property on the final config.
Why This Matters for Security Teams
Inherited proxy values are not just a convenience issue. In Axios, they can change where requests are sent, which outbound controls are bypassed, and whether sensitive traffic is routed through an attacker-controlled intermediary. That makes the question especially important in code paths that touch untrusted input, package upgrades, or shared middleware. The risk is less about one bad setting and more about configuration being inherited in ways developers do not expect, a pattern that mirrors broader non-human identity exposure documented in Ultimate Guide to NHIs — Why NHI Security Matters Now.
Security teams should treat proxy inheritance as a runtime trust issue, not just a code hygiene issue. If a request object can pick up ambient proxy settings from process state, environment variables, or polluted config objects, then the final network path may differ from what the developer intended. That matters in service-to-service traffic, internal APIs, and CI/CD runners where secrets, tokens, and backend metadata may be exposed through unexpected egress paths. In practice, many security teams encounter this only after traffic starts failing or leaving the environment through an unexpected proxy, rather than through intentional testing.
How It Works in Practice
To determine whether Axios requests are still exposed, teams should inspect the request construction path and then test the runtime behaviour. The key question is whether middleware or helper code clones configuration into a plain object before dispatch, because that can preserve inherited properties rather than forcing safe own-property checks. The second question is whether the application uses the Node HTTP adapter, since proxy handling differs from browser behaviour and is often shaped by environment-driven settings. For a wider identity and secrets context, NHI Mgmt Group’s Ultimate Guide to NHIs is a useful reference point for why configuration exposure matters operationally.
- Trace the final Axios config immediately before dispatch and confirm whether
proxyexists as an own property, not only via prototype inheritance. - Check for cloning patterns such as spread operations,
Object.assign, or custom merge helpers that may preserve polluted properties. - Verify whether the service accepts inputs from packages known to expose prototype pollution paths, especially where user-controlled JSON or query objects are merged into request options.
- Test with a controlled proof case that sets proxy-like properties on the prototype and confirm whether outgoing requests follow them.
- Prefer runtime validation at the request boundary rather than assuming upstream sanitisation will remain intact.
Current guidance from the Node and JavaScript ecosystem suggests that request libraries should treat configuration as tainted until proven otherwise, and that environment inheritance should be explicit rather than ambient. The same principle appears in Anthropic’s report on the first AI-orchestrated cyber espionage campaign, where automated tooling amplifies the impact of small control failures. These controls tend to break down when request options are assembled across multiple libraries because the final object shape is no longer obvious to the application owner.
Common Variations and Edge Cases
Tighter proxy validation often increases engineering overhead, requiring organisations to balance safer request construction against compatibility with older middleware and environment-based deployment conventions. That tradeoff is real, especially in monorepos and service meshes where several packages touch the same config object.
There is no universal standard for this yet, so best practice is evolving. Some teams will explicitly disable proxy inheritance at the edge and set outbound routing only through own properties on the final request object. Others will wrap Axios with a narrow adapter that rejects unexpected config keys and strips inherited values before dispatch. Both approaches are reasonable, but the right choice depends on whether the risk is coming from polluted input, legacy merge behaviour, or shared runtime state.
Edge cases appear when applications run behind corporate proxies, depend on environment variables for legitimate egress, or mix browser and Node execution paths. In those environments, a failure to distinguish intended proxy configuration from inherited properties can create false confidence during testing. The practical test is simple: if a polluted prototype can influence the final outbound request, the request path is still exposed.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-04 | Covers secret and config exposure through unsafe runtime inheritance. |
| OWASP Agentic AI Top 10 | A2 | Runtime tool use can amplify misrouted outbound requests and proxy abuse. |
| CSA MAESTRO | M1 | Agentic and automated workloads need explicit control over external connectivity. |
| NIST AI RMF | AI risk management emphasizes runtime monitoring for unpredictable behaviour. | |
| NIST CSF 2.0 | PR.DS-1 | Proxy inheritance can expose sensitive data in transit through unintended paths. |
Treat request config as sensitive identity material and block inherited values before dispatch.
Related resources from NHI Mgmt Group
- How do security teams know whether downloaded model assets are still trustworthy?
- How do security teams know whether exposed package-driven credentials are still dangerous?
- How do teams know whether application secrets are exposed through trust chains?
- How can security teams know whether n8n-style exposure is actually dangerous?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org