{"id":"GHSA-cg48-9hh2-x6mx","aliases":[],"url":"https://o3.security/vulnerability/GHSA-cg48-9hh2-x6mx","summary":"HTML Injection in preact","details":"Versions of `preact` 10.x on prerelease tags alpha and beta prior to 10.0.0-beta.1 are vulnerable to HTML Injection. Due to insufficient input validation the package allows attackers to inject JavaScript objects as virtual-dom nodes, which may lead to Cross-Site Scripting. This requires user input parsed with `JSON.parse()` to be passed directly into JSX without sanitization.\n\n\n## Recommendation\n\nUpgrade to version 10.0.0-beta.1.","published":"2020-09-02T18:28:58Z","modified":"2021-09-27T20:53:56Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"preact","fixedVersion":"10.0.0-beta.1"}],"fix":{"url":"https://github.com/developit/preact/pull/1528","label":"developit/preact#1528"},"references":[{"type":"WEB","url":"https://github.com/developit/preact/pull/1528"},{"type":"PACKAGE","url":"https://github.com/developit/preact"},{"type":"WEB","url":"https://github.com/developit/preact/releases/tag/10.0.0-beta.1"},{"type":"WEB","url":"https://medium.com/dailyjs/exploiting-script-injection-flaws-in-reactjs-883fb1fe36c1"},{"type":"WEB","url":"https://www.npmjs.com/advisories/835"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2021-09-27T20:53:56Z"}}