Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export class DbTableWidgetsComponent implements OnInit {
};
// JSON5-formatted default params
public defaultParams = {
Binary: `// No settings required`,
Boolean: `// Display "Yes/No" buttons with configurable options:
// - allow_null: Use "false" to require selection, "true" if field can be left unspecified
// - invert_colors: Swap the color scheme (typically green=Yes, red=No becomes red=Yes, green=No)
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/app/consts/filter-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ export const filterTypes = {
ascii: TextFilterComponent,
text: TextFilterComponent,

//binary
blob: BinaryFilterComponent,

list: JsonEditorFilterComponent,
map: JsonEditorFilterComponent,
set: JsonEditorFilterComponent,
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/app/consts/record-edit-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ export const recordEditTypes = {
ascii: TextEditComponent,
text: TextEditComponent,

//binary
blob: BinaryEditComponent,

list: JsonEditorEditComponent,
map: JsonEditorEditComponent,
set: JsonEditorEditComponent,
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/app/consts/record-view-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ export const recordViewFieldTypes = {
ascii: TextRecordViewComponent,
text: LongTextRecordViewComponent,

//binary
blob: BinaryRecordViewComponent,

list: JsonEditorRecordViewComponent,
map: JsonEditorRecordViewComponent,
set: JsonEditorRecordViewComponent,
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/app/consts/table-display-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ export const tableDisplayTypes = {
ascii: TextDisplayComponent,
text: LongTextDisplayComponent,

//binary
blob: BinaryDisplayComponent,

list: JsonEditorDisplayComponent,
map: JsonEditorDisplayComponent,
set: JsonEditorDisplayComponent,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"lodash@>=4.0.0 <=4.17.23": ">=4.18.0",
"lodash@<=4.17.23": ">=4.18.0",
"@nestjs/core@<=11.1.17": ">=11.1.18",
"uuid@<14.0.0": ">=14.0.0"
"uuid@<14.0.0": ">=14.0.0",
"fast-xml-parser@<5.7.0": ">=5.7.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Verify fast-xml-parser version 5.7.0 exists and check for security advisories

# Check npm registry for version availability
echo "Checking fast-xml-parser versions..."
npm view fast-xml-parser versions --json | jq -r '.[]' | grep -E '^5\.(7|[8-9]|[0-9]{2})\.' | head -10

# Check for security advisories
echo -e "\nChecking security advisories..."
gh api graphql -f query='
{
  securityVulnerabilities(first: 10, ecosystem: NPM, package: "fast-xml-parser") {
    nodes {
      advisory {
        summary
        severity
        publishedAt
      }
      vulnerableVersionRange
      firstPatchedVersion {
        identifier
      }
    }
  }
}'

Repository: rocket-admin/rocketadmin

Length of output: 3072


Document the security advisory in the PR description.

The override correctly enforces fast-xml-parser@>=5.7.0 to address a legitimate MODERATE severity vulnerability: "XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters" (affects versions < 5.7.0). The fix is valid and necessary.

However, the PR description should explicitly reference this security advisory. Since the PR's primary objective is Cassandra blob Binary widget support, mentioning the CVE/advisory details will clarify that this dependency upgrade is a separate security fix applied during the audit, not scope creep.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` at line 33, Update the PR description to explicitly document
the security override for fast-xml-parser by referencing the advisory
(XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters), noting
it addresses versions < 5.7.0 and enforces "fast-xml-parser@>=5.7.0" (the
override line in package.json), include the severity (MODERATE), any
CVE/advisory URL if available, and state this dependency upgrade is a separate
security fix applied during the audit rather than part of the Cassandra blob
Binary widget work.

},
"packageExtensions": {
"ibm_db": {
Expand Down
15 changes: 11 additions & 4 deletions pnpm-lock.yaml

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

Loading