{"id":"GHSA-5846-7qm3-r52j","revision":"f5aaa76180f543448dd18c780ef2fc6a","records":[{"revision":"f5aaa76180f543448dd18c780ef2fc6a","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-5846-7qm3-r52j","aliases":["CVE-2026-54729"],"title":"dssrf: any users using 1.1.1.1 DNS is impacted by SSRF","description":"## Summary\n\nis_url_safe can treat localhost as safe when DNS resolver 1.1.1.1 returns NXDOMAIN because dns.resolve4 yields no address and no dns.lookup fallback occurs, allowing server-side request forgery.\n\n## POC\n\nExample to simulate 1.1.1.1 in version before 1.5.0 of dssrf:\n\n```js\nimport { is_url_safe } from '../dist/helpers.js';\nimport dns from 'dns';\n\n\ndns.setServers(['1.1.1.1']);\n\nconst TARGET = 'http://localhost/admin';\n\nconsole.log(`Testing: ${TARGET}`);\nconsole.log(`Current DNS Servers: ${dns.getServers()}`);\n\nconst result = await is_url_safe(TARGET);\n\nif (result === true) {\n    console.log('dssrf treated localhost as SAFE because 1.1.1.1 returned NXDOMAIN.');\n} else {\n    console.log('dssrf blocked localhost.');\n}\n```","state":0,"publishedAt":"2026-07-31T16:58:42+00:00","modifiedAt":"2026-07-31T17:26:45.389705+00:00","affected":[{"ecosystem":"npm","name":"dssrf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.0.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/HackingRepo/dssrf-js/security/advisories/GHSA-5846-7qm3-r52j","https://github.com/HackingRepo/dssrf-js/pull/102","https://github.com/HackingRepo/dssrf-js/commit/668c21792cd1252baf779a176aa652e2b4c0067d","https://github.com/HackingRepo/dssrf-js"],"sourceUrl":"https://github.com/advisories/GHSA-5846-7qm3-r52j","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5846-7qm3-r52j","identifiers":["GHSA-5846-7qm3-r52j","CVE-2026-54729"]},"retained":false,"historicalAffected":[]}],"coverage":[]}