Repository navigation
fix(swagger-ui): escape the title and options embedded in the page - #2219
Conversation
🦋 Changeset detectedLatest commit: fef4a57 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2219 +/- ##
=======================================
Coverage 92.69% 92.69%
=======================================
Files 119 119
Lines 4354 4356 +2
Branches 1135 1135
=======================================
+ Hits 4036 4038 +2
Misses 283 283
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks for fixing this, releasing the patched version (0.6.2), and crediting me in the PR. Would you consider publishing a GitHub Security Advisory for this issue and requesting a CVE ID? The pre-patch behavior allowed a I have a working browser-execution reproduction (plus a command-line I understand CVE eligibility and severity are ultimately your decision. Thanks again for addressing this. |
titlewas inserted into<title>unescaped, and string options were embedded in the inline script as bare'...'literals, so a',</script>or</title>in an option could break out.Escape the title with
html, and serialize string and JSON options throughJSON.stringify()with<,>, U+2028 and U+2029 escaped. String options are now double-quoted in the output.Reported by @Jeg4nX19.
The author should do the following, if applicable
pnpm changesetat the top of this repo and push the changeset