{"id":"CVE-2025-59430","aliases":["CVE-2025-59430","GHSA-vh3f-qppr-j97f"],"related":[],"kind":"vulnerability","state":"published","title":"Mesh Connect JS SDK Vulnerable to Cross Site Scripting via createLink.openLink","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe 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.\n### Details\nhttps://github.com/FrontFin/mesh-web-sdk/blob/cf013b85ab95d64c63cbe46d6cb14695474924e7/packages/link/src/Link.ts#L441\nThe `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.\n\n### PoC\n1. Extract [poc-mesh-web-sdk.zip](https://github.com/user-attachments/files/22223079/poc-mesh-web-sdk.zip)\n2. Run `yarn install` and then `yarn start`\n3. Paste this payload inside the input box: `amF2YXNjcmlwdDphbGVydCh3aW5kb3cucGFyZW50LmRvY3VtZW50LmJvZHkuZ2V0RWxlbWVudHNCeVRhZ05hbWUoImgyIikuaXRlbSgwKVsiaW5uZXJIVE1MIl0pLy8=` \n4. Click on the _OpenLink_ button\n5. Notice the alert box and ability to access the `h2` title from the parent page\n\nIt can also be verified via `https://paylink.meshconnect.com/?linkToken=amF2YXNjcmlwdDphbGVydCgpLy8=`.\n\n### Impact\nThis 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.\n\nIf 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.\n\n### Reporters\n- [Amine `zwxxb` Elsassi](https://github.com/zwxxb) of [Aptos Labs](https://aptoslabs.com/)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-22T18:47:04.643Z","modified":"2026-10-11T21:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":8.2,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 3.3.2","status":"affected"}],"vendor":"FrontFin","product":"mesh-web-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.3.2"}],"ecosystem":"npm","package":"@meshconnect/web-link-sdk","purl":"pkg:npm/%40meshconnect/web-link-sdk","source":"ghsa"}],"references":[{"url":"https://github.com/FrontFin/mesh-web-sdk/security/advisories/GHSA-vh3f-qppr-j97f","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FrontFin/mesh-web-sdk/pull/124","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FrontFin/mesh-web-sdk/commit/7f22148516d58e21a8b7670dde927d614c0d15c2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FrontFin/mesh-web-sdk/blob/cf013b85ab95d64c63cbe46d6cb14695474924e7/packages/link/src/Link.ts#L441","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59430","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FrontFin/mesh-web-sdk","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-09-22T19:43:29.134Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59430","url":"https://www.cve.org/CVERecord?id=CVE-2025-59430","licence":"CVE Terms of Use","modified":"2025-09-22T19:43:47.837Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vh3f-qppr-j97f","url":"https://github.com/advisories/GHSA-vh3f-qppr-j97f","licence":"CC-BY-4.0","modified":"2025-09-22T21:58:19.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59430","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59430","licence":"Public domain","modified":"2026-10-11T21:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:04.995Z","epss":{"score":0.00452,"percentile":0.40956,"date":"2026-12-01T12:00:22.000Z"}}