Skip to content

Commit

Permalink
Merge pull request #4669 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 98fd1a2 + d8b73e8 commit 8243164
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 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.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@tinymce/tinymce-vue": "^6.1.0",
"@vue-a11y/announcer": "^3.1.5",
"@vueuse/core": "^10.5.0",
"altcha": "^1.0.7",
"altcha": "^1.0.7",
"chart.js": "^4.4.3",
"clone-deep": "^4.0.1",
"copyfiles": "^2.4.1",
Expand Down 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 @@ -85,7 +85,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/pubmed/templates/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 8243164

Please sign in to comment.