8.2high
Mesh Connect JS SDK Vulnerable to Cross Site Scripting via createLink.openLink
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.45% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vh3f-qppr-j97f
Description
Mesh Connect JS SDK contains JS libraries for integrating with Mesh Connect. Prior to version 3.3.2, the lack of sanitization of URLs protocols in the createLink.openLink function enables the execution of arbitrary JavaScript code within the context of the parent page. This is technically indistinguishable from a real page at the rendering level and allows access to the parent page DOM, storage, session, and cookies. If the attacker can specify customIframeId, they can hijack the source of existing iframes. This issue has been patched in version 3.3.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FrontFin mesh-web-sdk | < 3.3.2 | CVE List |
| @meshconnect/web-link-sdk (npm) | before 3.3.2 | GitHub Advisory Database |
All scores
| GitHub_M | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Mesh Connect JS SDK contains JS libraries for integrating with Mesh Connect. Prior to version 3.3.2, the lack of sanitization of URLs protocols in the createLink.openLink function enables the execution of arbitrary JavaScript code within the context of the parent page. This is technically indistinguishable from a real page at the rendering level and allows access to the parent page DOM, storage, session, and cookies. If the attacker can specify customIframeId, they can hijack the source of existing iframes. This issue has been patched in version 3.3.2.
GitHub Advisory Database
Summary
The lack of sanitization of URLs protocols in the createLink.openLink function enables the execution of arbitrary JavaScript code within the context of the parent page.
Details
https://github.com/FrontFin/mesh-web-sdk/blob/cf013b85ab95d64c63cbe46d6cb14695474924e7/packages/link/src/Link.ts#L441
The createLink.openLink function takes base64 encoded links, decodes them, and then sets the resulting string as the src attribute of an iframe. It’s important to note that the protocol part is not validated, so a payload, which is a valid URL, such as javascript:alert(document.domain)//, can be provided to the function.
PoC
- Extract poc-mesh-web-sdk.zip
- Run
yarn installand thenyarn start - Paste this payload inside the input box:
amF2YXNjcmlwdDphbGVydCh3aW5kb3cucGFyZW50LmRvY3VtZW50LmJvZHkuZ2V0RWxlbWVudHNCeVRhZ05hbWUoImgyIikuaXRlbSgwKVsiaW5uZXJIVE1MIl0pLy8= - Click on the OpenLink button
- Notice the alert box and ability to access the
h2title from the parent page
It can also be verified via https://paylink.meshconnect.com/?linkToken=amF2YXNjcmlwdDphbGVydCgpLy8=.
Impact
This is technically indistinguishable from a real page at the rendering level and allows access to the parent page DOM, storage, session, and cookies. If the attacker can specify customIframeId, they can hijack the source of existing iframes.
If access to the private key is possible or if transactions are tampered with or initialized, in a wallet context, it can result in a critical impact due to loss of funds scenarios.
Reporters
NVD (es)
Mesh Connect JS SDK contiene bibliotecas JS para la integración con Mesh Connect. Antes de la versión 3.3.2, la falta de saneamiento de los protocolos de URL en la función createLink.openLink permite la ejecución de código JavaScript arbitrario dentro del contexto de la página padre. Esto es técnicamente indistinguible de una página real a nivel de renderizado y permite el acceso al DOM, el almacenamiento, la sesión y las cookies de la página padre. Si el atacante puede especificar customIframeId, pueden secuestrar la fuente de iframes existentes. Este problema ha sido parcheado en la versión 3.3.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-59430 changed 2025-09-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vh3f-qppr-j97f changed 2025-09-22 | CC-BY-4.0 |
| NVD | CVE-2025-59430 changed 2026-10-11 | Public domain |