{"componentChunkName":"component---src-templates-blog-js","path":"/blog/2013/12/18/react-v0.5.2-v0.4.2.html","result":{"data":{"markdownRemark":{"html":"<p>Today we’re releasing an update to address a potential XSS vulnerability that can\t arise when using user data as a <code class=\"gatsby-code-text\">key</code>. Typically “safe” data is used for a <code class=\"gatsby-code-text\">key</code>, for example, an id from your database, or a unique hash. However there are cases where it may be reasonable to use user generated content. A carefully crafted piece of content could result in arbitrary JS execution. While we make a very concerted effort to ensure all text is escaped before inserting it into the DOM, we missed one case. Immediately following the discovery of this vulnerability, we performed an audit to ensure we this was the only such vulnerability.</p>\n<p>This only affects v0.5.x and v0.4.x. Versions in the 0.3.x family are unaffected.</p>\n<p>Updated versions are available for immediate download via npm, bower, and on our <a href=\"/react/downloads.html\">download page</a>.</p>\n<p>We take security very seriously at Facebook. For most of our products, users don’t need to know that a security issue has been fixed. But with libraries like React, we need to make sure developers using React have access to fixes to keep their users safe.</p>\n<p>While we’ve encouraged responsible disclosure as part of <a href=\"https://www.facebook.com/whitehat/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Facebook’s whitehat bounty program</a> since we launched, we don’t have a good process for notifying our users. Hopefully we don’t need to use it, but moving forward we’ll set up a little bit more process to ensure the safety of our users. Ember.js has <a href=\"http://emberjs.com/security/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">an excellent policy</a> which we may use as our model.</p>\n<p>You can learn more about the vulnerability discussed here: <a href=\"https://groups.google.com/forum/#!topic/reactjs/OIqxlB2aGfU\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">CVE-2013-7035</a>.</p>","excerpt":"Today we’re releasing an update to address a potential XSS vulnerability that can\t arise when using user data as a . Typically “safe” data is used for a , for example, an id from your database, or a unique hash. However there are cases where it may be reasonable to use user generated content. A carefully crafted piece of content could result in arbitrary JS execution. While we make a very concerted effort to ensure all text is escaped before inserting it into the DOM, we missed one case…","frontmatter":{"title":"React v0.5.2, v0.4.2","next":null,"prev":null,"author":[{"frontmatter":{"name":"Paul O’Shannessy","url":"https://twitter.com/zpao"}}]},"fields":{"date":"December 18, 2013","path":"content/blog/2013-12-18-react-v0.5.2-v0.4.2.md","slug":"/blog/2013/12/18/react-v0.5.2-v0.4.2.html"}},"allMarkdownRemark":{"edges":[{"node":{"frontmatter":{"title":"Introducing the New JSX Transform"},"fields":{"slug":"/blog/2020/09/22/introducing-the-new-jsx-transform.html"}}},{"node":{"frontmatter":{"title":"React v17.0 Release Candidate: No New Features"},"fields":{"slug":"/blog/2020/08/10/react-v17-rc.html"}}},{"node":{"frontmatter":{"title":"React v16.13.0"},"fields":{"slug":"/blog/2020/02/26/react-v16.13.0.html"}}},{"node":{"frontmatter":{"title":"Building Great User Experiences with Concurrent Mode and Suspense"},"fields":{"slug":"/blog/2019/11/06/building-great-user-experiences-with-concurrent-mode-and-suspense.html"}}},{"node":{"frontmatter":{"title":"Preparing for the Future with React Prereleases"},"fields":{"slug":"/blog/2019/10/22/react-release-channels.html"}}},{"node":{"frontmatter":{"title":"Introducing the New React DevTools"},"fields":{"slug":"/blog/2019/08/15/new-react-devtools.html"}}},{"node":{"frontmatter":{"title":"React v16.9.0 and the Roadmap Update"},"fields":{"slug":"/blog/2019/08/08/react-v16.9.0.html"}}},{"node":{"frontmatter":{"title":"Is React Translated Yet? ¡Sí! Sim! はい！"},"fields":{"slug":"/blog/2019/02/23/is-react-translated-yet.html"}}},{"node":{"frontmatter":{"title":"React v16.8: The One With Hooks"},"fields":{"slug":"/blog/2019/02/06/react-v16.8.0.html"}}},{"node":{"frontmatter":{"title":"React v16.7: No, This Is Not the One With Hooks"},"fields":{"slug":"/blog/2018/12/19/react-v-16-7.html"}}}]}},"pageContext":{"slug":"/blog/2013/12/18/react-v0.5.2-v0.4.2.html"}},"staticQueryHashes":[]}