fix(security): disable reading config params from URL search params (#7697)

Reading configuration parameters from URL search params 
is by default no longer enabled. To re-enable it, set queryConfigEnabled
configuration parameter to true.

Functionally, this is a breaking change, but given we're just providing
a security vulnerability patch we're considering this a PATCH version bump
only.

Refs #4872
Refs https://github.com/swagger-api/swagger-ui/security/advisories/GHSA-qrmm-w75w-3wpx
This commit is contained in:
Vladimir Gorej
2021-12-09 17:28:17 +01:00
committed by GitHub
parent df7749b2fe
commit 01a3e55960
8 changed files with 30 additions and 9 deletions

View File

@@ -56,7 +56,8 @@
} else {
window.completeCount = 1
}
}
},
queryConfigEnabled: true,
})
window.ui = ui

View File

@@ -65,7 +65,8 @@
} else {
window.completeCount = 1
}
}
},
queryConfigEnabled: true,
})
window.ui = ui