Summary
Chewy for Android may load a product-details deep link in a Hybrid WebView without adequately verifying its host. If a signed-in user opens a crafted link to an attacker-controlled page with the expected product path, that page may use the injected JavaScript bridge to retrieve the user's pet profile information.
Affected context
The issue occurs when Chewy for Android handles product-details deep links and loads the destination in a Hybrid WebView. Risk arises when the app relies on a matching /dp/<number> path without sufficiently restricting the destination host, while exposing the nma_petmd_bridge interface to the loaded page. The described disclosure affects signed-in users who open a crafted link.
Exploit preconditions
- Attack surface: Product-details deep-link handling in the Android app's Hybrid WebView
- Required access: The attacker must be able to provide a crafted link to a user; the user must be signed in for pet profile information to be available
- Trigger point: The user opens the link and the app loads its destination
- Why exploitation is possible: Host validation is inadequate, and a page matching the expected path can access the injected JavaScript bridge and invoke
getPetProfiles
Why this happens
The app does not adequately bind a product-details route to an explicitly trusted host before loading it in a WebView. Treating a path match as sufficient destination validation can allow an untrusted site to be loaded in a context that exposes a native JavaScript interface. This is consistent with CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where insufficient validation allows navigation to an attacker-controlled destination.
Potential impact
- An attacker-controlled page may access pet profile information for a signed-in user
- Sensitive account-related data could be disclosed without the user's awareness
- The exposed bridge could create additional risk if it provides other sensitive capabilities
General mitigation guidance
Defensive patterns focus on strict destination control and limiting the authority of web content:
- Allow only explicitly trusted schemes, hosts, and routes for deep-link navigation
- Reject unexpected hosts even when a URL path matches an expected product format
- Avoid exposing native JavaScript interfaces to untrusted or externally hosted pages
- Minimize bridge methods and the data they return; require appropriate authorization for sensitive operations
- Prefer secure-by-default navigation behavior, such as opening untrusted destinations outside the privileged WebView
- Treat deep-link values as untrusted input and apply least privilege to both WebView content and bridge capabilities
How teams detect issues like this
- Use static analysis and code review to identify deep-link handlers that validate paths but not schemes or hosts
- Review WebView navigation callbacks and JavaScript interface exposure for trust-boundary gaps
- Test deep-link handling with unexpected and untrusted destinations, including links that use otherwise valid-looking paths
- Enforce policies that restrict privileged bridge interfaces to explicitly trusted origins
- Automated security review tools may help flag weak URL validation and risky WebView configurations

