Skip to content

Commit

Permalink
Merge pull request #1844 from blesildaramirez/i9717
Browse files Browse the repository at this point in the history
pkp/pkp-lib#9717 Resolve template injection risks in Smarty/Vue interactions
  • Loading branch information
blesildaramirez authored Feb 21, 2025
2 parents 68e95dd + 40f9aeb commit 8fadedf
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 3 deletions.
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"cypress-file-upload": "^5.0.8",
"cypress-iframe": "^1.0.1",
"cypress-wait-until": "^2.0.1",
"dompurify": "^3.2.4",
"eslint": "^8.48.0",
"eslint-plugin-vue": "^9.17.0",
"google-closure-compiler-java": "^20200719.0.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/importexport/native/templates/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
/>
<span
class="listPanel__itemSubTitle"
v-html="localize(
v-strip-unsafe-html="localize(
item.publications.find(p => p.id == item.currentPublicationId).fullTitle,
item.publications.find(p => p.id == item.currentPublicationId).locale
)"
Expand Down
2 changes: 1 addition & 1 deletion plugins/importexport/onix30/templates/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
/>
<span
class="listPanel__itemSubTitle"
v-html="localize(
v-strip-unsafe-html="localize(
item.publications.find(p => p.id == item.currentPublicationId).fullTitle,
item.publications.find(p => p.id == item.currentPublicationId).locale
)"
Expand Down
2 changes: 1 addition & 1 deletion plugins/pubIds/urn/js/FieldTextUrn.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pkp.registry.registerComponent('FieldTextUrn', {
' <div' +
' v-if="isPrimaryLocale && description"' +
' class="pkpFormField__description"' +
' v-html="description"' +
' v-strip-unsafe-html="description"' +
' :id="describedByDescriptionId"' +
' />' +
' <div class="pkpFormField__control" :class="controlClasses">' +
Expand Down

0 comments on commit 8fadedf

Please sign in to comment.